in reply to split this

Actually, it doesn't sound like a job for split. It sounds like a job for a regular expression. Try this:

my $x = 'E/stYna~ko'; my @chars = $x =~ /(\w\W*)/g; print "@chars\n";
--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."

Replies are listed 'Best First'.
(tye)Re: split this
by tye (Sage) on Nov 07, 2001 at 04:04 UTC

    split /(?=\w)/ also works.

            - tye (but my friends call me "Tye")
Re: Re: split this
by dmmiller2k (Chaplain) on Nov 06, 2001 at 23:10 UTC

    Bravo! Succinct, concise, nothing unnecessary. Well done.

    dmm

    
    You can give a man a fish and feed him for a day ...
    Or, you can teach him to fish and feed him for a lifetime