Hi,
I have a file that is split into four reports. I'm using PERL to pull out lines that start with numbers like 301, 533 ect from each report.
Everything was working great, until I encountered a line that has 301 in it, but not at the begining.
How do I tell PERL to look for lines that BEGIN with 301, 533 etc and ignore instances where those numbers occur after the start of the line.
Thanks in advance for your help.
PC
I have a file that is split into four reports. I'm using PERL to pull out lines that start with numbers like 301, 533 ect from each report.
Everything was working great, until I encountered a line that has 301 in it, but not at the begining.
How do I tell PERL to look for lines that BEGIN with 301, 533 etc and ignore instances where those numbers occur after the start of the line.
Thanks in advance for your help.
PC