in reply to Re: can I make my regexp match first pattern instead of last?
in thread can I make my regex match first pattern instead of last?
I have one small remaining problem, though. My data is already a large string variable instead of a filehandle. I used the filehandle in my example above because it was easy to just copy and paste. So what do I do with this "while" line in your solution if I already have the whole dataset slurped up into a variable called $fileContents?
while (defined (my $block = <DATA>))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: can I make my regexp match first pattern instead of last?
by GrandFather (Saint) on Oct 25, 2008 at 20:33 UTC | |
by kleucht (Beadle) on Oct 25, 2008 at 22:39 UTC | |
by kleucht (Beadle) on Sep 18, 2009 at 15:24 UTC | |
by toolic (Bishop) on Sep 18, 2009 at 17:33 UTC |