[Melbourne-pm] (no subject)
Bradley Dean
bjdean at bjdean.id.au
Sun Mar 26 20:17:39 PST 2006
Greetings folks,
I'm sure the answer to this is going to be either 'kick-myself' simple or
practically impossible - I've been playing around and looking through
documentation to no avail...
How do I directly reference a member of a returned array - ie (in broken
code):
sub gimme_an_array { return (1,2,3,4,5,6); }
my $third_member = gimme_an_array()[2];
Which is invalid syntax, but I cannot work out the correct syntax....
Any ideas?
Brad
--
Bradley Dean ... 平静
Software Engineer - http://bjdean.id.au/
Email: bjdean at bjdean.id.au Mobile: +61-413014395
AICSA - webmaster at aicsa.org.au - http://www.aicsa.org.au/
ICICLES Ski Club - webmaster at icicles.com.au - http://www.icicles.com.au/
More information about the Melbourne-pm
mailing list