Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Splitting a String

by damian1301 (Curate)
on May 18, 2001 at 05:00 UTC ( #81404=note: print w/replies, xml ) Need Help??


in reply to Splitting a String

@array=split/\|/,$str;

You have to backslash it because it is used in regular expressions as a logical or.

NOTE:This could have been found out by using the tutorials, super search or just looking through the archives...

Tiptoeing up to a Perl hacker.
Dave AKA damian

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://81404]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2016-12-09 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.