I'm not sure the regex is syntatically right. It's supposed to match all digits from the start of the line to the first pipe. it isn't tested, but I think it will work.open FILE, "somefile.txt" || die "Blah: $!\n"; while(<FILE>){ m/^(\d+)\|/; print if(($first <= $1) and ($1 <= $last)); }
Michael.
In reply to Re: An odd flat file database question
by coolmichael
in thread An odd flat file database question
by Stamp_Guy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |