in reply to Re: Why does split on /./ not split the string?
in thread Why does split on /./ not split the string?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why does split on /./ not split the string?
by parv (Parson) on Dec 08, 2005 at 01:02 UTC | |
by QM (Parson) on Dec 08, 2005 at 04:39 UTC |