Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#e.g. file looks like; # type value value2 # 503 1093 4395 # 498 2134 9832 # etc....... @file # contains data foreach my $line (@file) { @file = split (/\s+/, $line); } print "$file[2]\n";
Edit: Added <code> tags. larsen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problems with split
by integral (Hermit) on Mar 03, 2003 at 18:20 UTC | |
by Anonymous Monk on Mar 03, 2003 at 18:23 UTC | |
by integral (Hermit) on Mar 03, 2003 at 18:28 UTC | |
|
Re: problems with split
by dws (Chancellor) on Mar 03, 2003 at 20:27 UTC |