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