Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: python-like split+array access -- possible?

by neniro (Priest)
on Oct 26, 2005 at 19:52 UTC ( #503149=note: print w/ replies, xml ) Need Help??


in reply to python-like split+array access -- possible?

Or just use an anonym array:

my $myString = '123_456'; print [split /_/ , $myString]->[1];


Comment on Re: python-like split+array access -- possible?
Download Code
Re^2: python-like split+array access -- possible?
by Juerd (Abbot) on Oct 26, 2005 at 19:57 UTC

    Or just use an anonym array

    The construction and destruction of this temporary array do have some overhead that may be unwanted because of permormance needs.

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (14)
As of 2014-07-30 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (234 votes), past polls