open(FILE,"perlmonks.txt") or die $!; while(<FILE>){ if(/^\s(\w)\s+(\w)/){ print "$1 ::: $2\n"; } }
In reply to Re: Regular Expression Problem
by Anonymous Monk
in thread Regular Expression Problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |