There's more than one way to do things | |
PerlMonks |
print complains about a file handle variableby SirBones (Friar) |
on Oct 15, 2006 at 03:00 UTC ( [id://578341]=perlquestion: print w/replies, xml ) | Need Help?? |
SirBones has asked for the wisdom of the Perl Monks concerning the following question:
I've started playing with Perl objects. I've got a nice little class that establishes a TCP/IP socket and supports some communications functions along that socket. The hash key for the socket name is 'S', which was created and assigned in my constructor, and which is referred to in my methods as $me->{S}, i.e.:
This works fine.
But if I try to use it here:
I get this error:
But if I do this:
All is well. I'm sure someone will tell me in short order: What gives? (Please.) (Thanks, as usual.) -Ken
"This bounty hunter is my kind of scum: Fearless and inventive." --J.T. Hutt
Back to
Seekers of Perl Wisdom
|
|