Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
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 about the Monastery: (3)
As of 2014-04-21 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (490 votes), past polls