good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: An odd flat file database questionby coolmichael (Deacon) |
on Feb 08, 2001 at 08:27 UTC ( [id://57132]=note: print w/replies, xml ) | Need Help?? |
if you assume that $first and $last are the first and last catalog numbers the person wants, you could do this: 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. Michael.
In Section
Seekers of Perl Wisdom
|
|