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

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

by neniro (Priest)
on Oct 26, 2005 at 19:52 UTC ( [id://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];

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://503149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found