On Aug 16, David Simcik said:

>Type of arg 1 to main::isPresent must be scalar (not single ref constructor)
>at C:\src\Orion\cgi-bin\share.pl line 45, near "$user)"

A prototype of \$ means that Perl will add the \ for you automagically.

>sub isPresent(\$$);
>
>if(!isPresent(\$req, $user))

You don't need to backslash $req.  Perl does it for you because of the
prototype.

I don't know WHY you want to send a reference, though. :)

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to