Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: using split

by FunkyMonk (Chancellor)
on Jun 04, 2007 at 16:10 UTC ( #619162=note: print w/replies, xml ) Need Help??


in reply to using split

The pipe character is special in a regexp, so you need to escape it:

@cols = split(/\|/, $line);

Replies are listed 'Best First'.
Re^2: using split
by maurkb (Novice) on Jun 04, 2007 at 16:29 UTC
    Ah, I should have realized that. Thanks for the help!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2021-04-17 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?