in reply to list returned from function
You need an extra layer of parens. $elem = (myFunc())[5];
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
In Section
Seekers of Perl Wisdom