>>>>> "Peng" == Peng Yu <pengyu...@gmail.com> writes:
Peng> I can't find an existing perl subroutine (in the library) to find Peng> every occurrence of a substring in a string. The following webpage Peng> "Example 3b. How to find every occurrence" uses a loop to do so. But Peng> I'd prefer a subroutine. You had me up to here. Why? Why a *subroutine*? That's like saying "I really like variable names, but only if they start with a consonant... not a vowel!" -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/