Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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" ;)


Comment on Re: Split - what am i doing wrong?
Download Code

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 musing on the Monastery: (15)
As of 2014-07-10 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (216 votes), past polls