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

Re: Split - what am i doing wrong?

by McDarren (Abbot)
on May 04, 2009 at 01:32 UTC ( #761639=note: print w/ replies, xml ) Need Help??


in reply to Split - what am i doing wrong?

Try:
foreach $field (split(/\Q$delim\E/, $line)) {

Update: See perldoc -q quote

Cheers,
Darren :)

PS. The word is "delimiter" ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2016-07-25 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (222 votes). Check out past polls.