![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How to capture all occurances from a slurped file.by shmem (Chancellor) |
on Aug 24, 2006 at 22:04 UTC ( [id://569465]=note: print w/replies, xml ) | Need Help?? |
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
|
|