Uhhh ... isn't that what I said? :)
my $ar = @_;
Now you're accessing an array in scalar context. This will result in $ar being set the the number of elements in @_.
Cheers,
Ovid
New address of my CGI Course.
Silence is Evil (feel free to copy and distribute widely - note copyright text)
In reply to Re: Re4: whats wrong with my sub-routine ??
by Ovid
in thread whats wrong with my sub-routine ??
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |