Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 chilling in the Monastery: (18)
As of 2015-07-01 18:02 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 (15 votes), past polls