No such thing as a small change | |
PerlMonks |
Re: strictby arturo (Vicar) |
on Feb 02, 2001 at 01:30 UTC ( [id://55846]=note: print w/replies, xml ) | Need Help?? |
That's because you're not declaring your variables, as strict forces you to do. You need to add:
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 Section
Seekers of Perl Wisdom
|
|