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 |
In Section
Seekers of Perl Wisdom