Re: Passing Scalar Reference to Subroutine

2001-08-17 Thread Michael Fowler
I'm responding to both messages (the original and the response) because I don't have the original. On Thu, Aug 16, 2001 at 01:21:16PM -0500, randy Peterman wrote: > I believe that you may need to add an ampersand "&" before the name of the > subroutine, like so: > if(!&isPresent(\$req, $user))

Re: Passing Scalar Reference to Subroutine

2001-08-16 Thread randy Peterman
I believe that you may need to add an ampersand "&" before the name of the subroutine, like so: if(!&isPresent(\$req, $user)) Randy "David Simcik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Newbie question here... > > I've created a CGI.pm object and want

Passing Scalar Reference to Subroutine

2001-08-16 Thread David Simcik
Newbie question here... I've created a CGI.pm object and want to pass its reference to a function. It keeps on puking though, returning this message: 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)" Basically, I