and watch 'foo' being printed exactly once. maybe you wanted to say foreach (@data)?perl -e 'my $lines = 5; foreach ($lines) { print "foo\n"}'
In reply to Re: Two loops
by thcsoft
in thread Two loops
by loop362
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |