in reply to split this
$x = 'E/stYna~ko'; @j=split (/(\w\W*)/, $x); foreach $j(@j){ $i++; print "$i - $j\n"; } print "\n";
(I added the extra code for clarity of output. It was hard to see where the exrta blanks were otherwise.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: split this
by pike (Monk) on Nov 06, 2001 at 18:04 UTC | |
|
more concise
by Fletch (Bishop) on Nov 06, 2001 at 18:06 UTC | |
by davorg (Chancellor) on Nov 06, 2001 at 18:13 UTC | |
by Fletch (Bishop) on Nov 06, 2001 at 18:31 UTC |