Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This doesn't workwhile (<INPUT>) { my $line = $_; @push @lineinfo, split $line; my $length = @lineinfo; print "LEN: $length\n"; @lineinfo = (); }
Any idea why not?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String parse
by tall_man (Parson) on Feb 01, 2003 at 04:07 UTC | |
|
Re: String parse
by PodMaster (Abbot) on Feb 01, 2003 at 03:58 UTC | |
|
Re: String parse
by thezip (Vicar) on Feb 01, 2003 at 04:19 UTC | |
|
Re: String parse
by OM_Zen (Scribe) on Feb 01, 2003 at 04:53 UTC | |
by ibanix (Hermit) on Feb 02, 2003 at 09:29 UTC |