[Israel.pm] How to "split" but keep the delimiter

Yossi.Itzkovich at ecitele.com Yossi.Itzkovich at ecitele.com
Mon Dec 6 02:48:58 PST 2004






Hi,

I know I can do it without "split", but still, by using split, how can I
still leave the delimiter in the returned list ?

For example:
my @out=split (/instance No \d+/ , $text)

I want to iterate over @out, but still having that \d in place


Thanks

Yossi




More information about the Perl mailing list