#!/usr/bin/perl open(TMP,"$ARGV[0]"); while(<TMP>) { if($_ =~ m/([0-9-.]+)\|/) { $gref=$1; } if($_ =~ m/([0-9]+),/) { $type=$1; } }
Hope this helps...
In reply to Re: regex question
by cool_jr256
in thread regex question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |