That's because you're not declaring your variables, as strict forces you to do.
You need to add:
my $line; my @lines;
BEFORE you try to set them, for your code to work. Alternately, omit the FIRST of the declarations above and change that one line to while (my $line = <> ...)
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: strict
by arturo
in thread strict
by snowrider
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |