in reply to Re^2: Function Prototype Context Conversion
in thread Function Prototype Context Conversion
Ah, not so! You've ask for a scalar, but you're getting an array! If you had done:
you'd have seen. Arrays and lists are not the same thing.sub foo ($) { ... } @a = (1,10,100); foo(@a); # no error, '3' is passed to foo() foo(1,10,100); # error, too many args
_____________________________________________________
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:??;
|
---|