in reply to print list element from function syntax

Well, the warning you'd get if you had warnings enabled explains what's wrong, although I'm pretty sure Abigail-II found some problems with the heuristic Perl uses in this case. Basically, generally, if a function name is followed by a SINGLE space and then parentheses, Perl lets you know that your attempt to not put parentheses around the arguments to a function failed. But if you add another space, you don't get the warning. If you remove the space, you don't get the warning. (You always get the error, though.)
_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
  • Comment on Re: print list element from function syntax