Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: question on perl's split function

by Prof Vince (Friar)
on Oct 22, 2007 at 10:00 UTC ( #646410=note: print w/ replies, xml ) Need Help??

in reply to question on perl's split function

You can also use a regexp :

my @arr = $string =~ m,([^/]+),g;

Please note that Perl's split isn't PHP's and expects a pattern (or ' ') as its first argument, so you'd better not split on a string if you don't know what's happening there.

Comment on Re: question on perl's split function
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2015-11-26 12:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (698 votes), past polls