|
|
| Just another Perl shrine | |
| PerlMonks |
Re: How to capture all occurances from a slurped file.by shmem (Chancellor) |
| on Aug 24, 2006 at 18:04 UTC ( [id://569465]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You're just missing the loop:
After each match is found, the search continues where the last match left. So you get all occurrences. --shmem _($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||