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

Re: Splitting a String

by damian1301 (Curate)
on May 18, 2001 at 05:00 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://81404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-03-28 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found