Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: split this

by Tyke (Pilgrim)
on Nov 06, 2001 at 18:02 UTC ( [id://123572]=note: print w/replies, xml ) Need Help??


in reply to split this

I think that you _can_ do it with a split:
perl -le "print for split /(?=[^~\/](?:.|$))/,shift" "E/sYna~ko/"
looks as if it works on your test data.

Update Actually that should have been

perl -le "print for split /(?=[^~\/])/,shift" "E/sYna~ko/"
but you saw that

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://123572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-25 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found