|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Re: Split and empty stringsby andye (Curate) |
| on Apr 10, 2001 at 15:29 UTC ( [id://71373]=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.
No, they're scattered randomly through the string. But thanks for the idea, TheoPetersen. I've looked at perlfunc:split again - still no joy.
Slight modification - I've realised I don't need the /m on the regexp. Works the same without. andy. update: thanks again. I've realised that I was being stupid - the onset of tunnel vision. split was doing exaclty what it ought, as your example shows, but the regexp was returning extra blank lines.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||