Use the string as a file:
my $fileContents; open my $scan, '<', \$fileContents; while (defined (my $block = <$scan>)) { ... } close $scan;
In reply to Re^3: can I make my regexp match first pattern instead of last?
by GrandFather
in thread can I make my regex match first pattern instead of last?
by kleucht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |