Debian Codegraph @

Test_Progs/loop_variable_names

raw
1 #! /usr/bin/perl -w
2
3 my $VERSION = 1.02;
4
5 use blib;
6
7 # Restrictions on Loop-variable Names
8 #
9 # Due to a bug in most versions of Text::Balanced,
10 # loop-variable names that look like Perl operators,
11 # including $m, $a, $s, $y, $tr, $qq, $qw, $qr, $qx
12 # and possibly others, cause syntax errors.
13
14 # are these restrictions fixed ?
15
16 use Shell::POSIX::Select ;
17
18 select $m (@ARGV) { print "$m\n"; }
19 select $a (@ARGV) { print "$a\n"; }
20 select $s (@ARGV) { print "$s\n"; }
21 select $y (@ARGV) { print "$y\n"; }
22 select $tr (@ARGV) { print "$tr\n"; }
23 select $qq (@ARGV) { print "$qq\n"; }
24 select $qw (@ARGV) { print "$qw\n"; }
25 select $qr (@ARGV) { print "$qr\n"; }
26 select $qx (@ARGV) { print "$qx\n"; }