[Pdx-pm] Mac sockets...

Austin Schutz tex at off.org
Thu May 22 15:24:49 CDT 2003


On Thu, May 22, 2003 at 01:12:01PM -0700, Nick Wehr wrote:
> Hey, thanks for all the feedback from yesterdays .exe
> post!  Here's more junk for you guys to churn-
> 
> I've made a script which uses the IO::Socket::INET
> module.  It seems to work great in win32.  However,
> when I run the same script (no mods) in darwin, I get
> errors.

	When you get a message like "can't call XXXXXX on an undefined value"
it means the object you are trying to call the method on didn't initialize
properly. Look at the line the error occurred on, figure out what kind of
object it's supposed to be, then figure out why it isn't.
	Typically when you create an object using the 'new' method of a
module, the module is nice enough to provide some sort of error handling.
Typically for IO modules you can look at "$!" to find out what the error was.

	Btw, normally people post error messages in text along with the code
snippet causing the error. I have to say I got a pretty good chuckle from
the screenshot with the big red arrow.

	Austin



More information about the Pdx-pm-list mailing list