Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: What am I doing wrong with 'split'

by rnewsham (Curate)
on Aug 11, 2013 at 09:41 UTC ( #1048992=note: print w/replies, xml ) Need Help??


in reply to What am I doing wrong with 'split'

You need to escape your escape.

perl -e '$s="85|mat\@com";$sep="\\\|"; ($key,$email)=split($sep,$s); +print "$key\t$email\n";' 85 mat@com

Replies are listed 'Best First'.
Re^2: What am I doing wrong with 'split'
by flexvault (Monsignor) on Aug 11, 2013 at 10:08 UTC

    rnewsham,

    Thanks, makes sense now that you pointed it out.

    Regards...Ed

    "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2020-11-27 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?