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>))In reply to Re^2: can I make my regexp match first pattern instead of last?
by kleucht
in thread can I make my regex match first pattern instead of last?
by kleucht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |