Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Splitting a String

by TheoPetersen (Priest)
on May 18, 2001 at 05:03 UTC ( #81406=note: print w/ replies, xml ) Need Help??


in reply to Splitting a String

The answer appears so many times in your post that I wonder if you are testing the community to see how nice we can be :)

It's perlfunc:split of course. Pass it a regular expression and your string and you'll get the array of choice back.

@ary = split(/|/, $string);

Go read the documentation though, split does other nice tricks too.


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://81406]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (15)
As of 2015-07-02 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls