kevinw has asked for the wisdom of the Perl Monks concerning the following question:
basically, FILE contains the following data and i want to get the classes which is the first column.....while (<FILE>) { $class= split(/\s+/,$_); print $class; }
Classes categorized by sections: section 1 classC 18 classA 17 classD 16 section2 classE 15 classO 14 classB 16
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help with split()
by DamnDirtyApe (Curate) on Jul 25, 2002 at 21:36 UTC | |
|
Re: help with split()
by dragonchild (Archbishop) on Jul 25, 2002 at 21:39 UTC | |
|
Re: help with split()
by thelenm (Vicar) on Jul 25, 2002 at 21:44 UTC |