Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: backward split

by arthas (Hermit)
on Jun 01, 2003 at 13:12 UTC ( [id://262197]=note: print w/replies, xml ) Need Help??


in reply to backward split

Many others already replied you very well offering various different solution. I'll just add that, if you just need to skip the first elements of a string split, you can write as follows:
# Skips first two elements (undef, undef, $val1, $val2) = split(/\./, $string);
Michele.

Replies are listed 'Best First'.
Re^2: backward split
by Aristotle (Chancellor) on Jun 01, 2003 at 13:47 UTC
    Of course that assumes you know beforehand how many dots the source string has. :)

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-18 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found