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; }
In reply to Re: ignore some delimiters while using split
by BrowserUk
in thread ignore some delimiters while using split
by nurulnad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |