http://www.perlmonks.org?node_id=139549


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:??;