in reply to ignore some delimiters while using split
It's easier to just extract the bits you need:
while( <FILE> ) { my( $x, $y, $z ) = m[(\w)\s(\w)\s(\w)\s*$]; print if $x eq $y and $y eq $z; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ignore some delimiters while using split
by MajingaZ (Beadle) on Aug 13, 2010 at 01:33 UTC | |
by AnomalousMonk (Archbishop) on Aug 13, 2010 at 10:19 UTC |