|
|
| go ahead... be a heretic | |
| PerlMonks |
using splitby rsiedl (Friar) |
| on Nov 17, 2006 at 03:04 UTC ( [id://584677]=perlquestion: 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.rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
hi monks, can anyone tell me how i could get the values that have been used for a split, in the order that they have been split? Example: I would like to have the @names array as well as another array like: cheers, reagen Update: If the PATTERN contains parentheses, additional array elements are created from each matching substring in the delimiter. should have read the man first, doh!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||