split returns only the string segments between, but not including the matching chars.<nit>
Uhm, then what does this do?
Updated: Corrected '+' typo.my @list = split /([\W]+)/, 'one;two--three!!!';
</nit>
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^2: Why does split on /./ not split the string?
by QM
in thread Why does split on /./ not split the string?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |