in reply to Passing IO::Socket::INET
you're passing a single parameter.if (!authenticate($session)) { ...
then puts this this single parameter into $self, which isn't what you expect.sub authenticate { my ($self, $session) = @_; ...
To invoke authenticate() as a method, you would need to write
But this wouldn't work, since start() doesn't set up $self.if (! $self->authenticate($session)) { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Passing IO::Socket::INET
by jk2addict (Chaplain) on Jan 27, 2003 at 19:19 UTC |