nested.t
来自「source of perl for linux application,」· T 代码 · 共 43 行
T
43 行
BEGIN { if ($ENV{PERL_CORE}) { chdir('t') if -d 't'; @INC = qw(../lib); }}use Switch;print "1..4\n";my $count = 1;for my $count (1..3, 'four'){ switch ([$count]) {=pod=head1 TestWe also test if Switch is POD-friendly here=cut case qr/\d/ { switch ($count) { case 1 { print "ok 1\n" } case [2,3] { print "ok $count\n" } } } case 'four' { print "ok 4\n" } }}__END__=head1 Another testStill friendly???=cut
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?