$_ = "perl monks"; #pe er rl mo on nk ks for ( split /\s+/ ) { $last = ""; for ( split // ) { print "$last$_ " if $last; $last=$_; } }
In reply to Re: Splitting a string
by holli
in thread Splitting a string
by lampros21_7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |