mhearse has asked for the wisdom of the Perl Monks concerning the following question:
Can someone suggest a cleaner way to grab a column? Maybe with regex. In this case the columns are seperated by a single space. Thanks.while (<>) { my @temp = split / /; print $temp[4],"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Column help
by tachyon (Chancellor) on Oct 16, 2004 at 21:46 UTC | |
|
Re: Column help
by ihb (Deacon) on Oct 16, 2004 at 21:13 UTC | |
|
Re: Column help
by pg (Canon) on Oct 16, 2004 at 21:29 UTC | |
|
Re: Column help
by mhearse (Chaplain) on Oct 16, 2004 at 22:39 UTC | |
|
Re: Column help
by stevecomrie (Beadle) on Oct 18, 2004 at 13:48 UTC | |
by mhearse (Chaplain) on Oct 24, 2004 at 08:23 UTC |