in reply to Re4: whats wrong with my sub-routine ??
in thread whats wrong with my sub-routine ??

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)

  • Comment on Re: Re4: whats wrong with my sub-routine ??