Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: another split question

by Anonymous Monk
on Sep 05, 2005 at 12:28 UTC ( [id://489212]=note: print w/replies, xml ) Need Help??


in reply to another split question

perldoc -f split
If the PATTERN contains parentheses, additional list eleme +nts are created from each matching substring in the delimiter. split(/([,-])/, "1-10,20", 3); produces the list value (1, '-', 10, ',', 20)
How to RTFM

Replies are listed 'Best First'.
Re^2: another split question
by blazar (Canon) on Sep 05, 2005 at 13:24 UTC
    This is not exactly what the OP asked for. Of course it may be a starting point to achieve that based on the gathered data. But that would be more complex than is needed IMHO. ysth's reply comes closer to what he (the OP) really wants.
How to LTFM...
by polettix (Vicar) on Sep 05, 2005 at 12:45 UTC
    Just a suggestion... where L stands for "Link" ;)
    [doc://split]
    produces split.

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.

Log In?
Username:
Password:

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

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

    No recent polls found