Test_Progs/eslect | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 31 | 68 | 45.5 |
branch | 7 | 44 | 15.9 |
condition | 3 | 13 | 23.0 |
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 44 | 128 | 34.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #! /usr/bin/perl -w | ||||||
2 | |||||||
3 | 1 | 3 | my $VERSION = 1.02; | ||||
4 | |||||||
5 | 1 | 1 | 10 | use blib; | |||
1 | 5 | ||||||
1 | 133 | ||||||
6 | |||||||
7 | 1 | 1 | 1174 | use Shell::POSIX::Select qw($Heading); | |||
1 | 4 | ||||||
1 | 7 | ||||||
8 | |||||||
9 | 1 | 50 | 1 | 665 | BEGIN { @ARGV or @ARGV=qw(A B C) ; } | ||
10 | # eslect $var[2] ( ) { print "$var[2]\n" } | ||||||
11 | |||||||
12 | 1 | 2 | $Heading='MENU CITY'; | ||||
13 | select $var (@ARGV) { print "$var\n"; } |