Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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


Comment on Re: Splitting a String
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2014-09-18 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (115 votes), past polls