Untested:
sub explode { my($s) = @_; $s =~ /./gs; } sub implode { join "", @_; }
Update: added /s flag to handle strings with newlines. (The OP might never notice, I can't msg him.)
In reply to Re: Where can I find the 'implode' and 'explode' functions?
by ambrus
in thread Where can I find the 'implode' and 'explode' functions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |