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
In reply to help with split() by kevinw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |