in reply to Strange Compilation Failed in Require Error
my $SockObj = Comm->new( $self->_serveraddr, $self->_port );
A few issues
Perhaps this is closer to what you want for that line:
sub sock_object { my $self = shift; return $self->{_sock_object} ||= Comm->new( $self->{_serveraddr}, +$self->{_port} ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange Compilation Failed in Require Error
by Perllace (Acolyte) on Apr 05, 2011 at 12:11 UTC | |
by wind (Priest) on Apr 06, 2011 at 23:16 UTC |