in reply to strict
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: strict
by snowrider (Pilgrim) on Feb 02, 2001 at 01:42 UTC | |
by arturo (Vicar) on Feb 02, 2001 at 01:47 UTC | |
by snowrider (Pilgrim) on Feb 02, 2001 at 01:52 UTC |