>>>>> "Peng" == Peng Yu <[email protected]> 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 <[email protected]> <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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
