I had not defined the constants being used (I'm honestly not sure what that means). I tried both separating the functions that use IProcess into a separate mod and adding () after each constant in the subroutine runTestHarness(). Both approaches seem to work so I combined the two to be safe by moving the code to a mod and adding the ().
-----Original Message----- From: Chris Nandor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 2:09 PM To: Randall M! Gee Cc: [EMAIL PROTECTED] Subject: Re: [MacPerl] Can you make "use" platform specific? At 14:00 -0700 2002.07.31, Randall M! Gee wrote: >Sure, it prints "3", but only on a Mac. Try it on a non-Mac machine. >You get an error, because kMacPerlQuitIfFirstScript is a bareword, and >you never did anything to tell Perl it's a function. Yes, of course. That's not the point of my example. I assumed that in his example, he had defined the constants being used. Perhaps a bad assumption on my part, but I didn't glean from his post that he hadn't defined the constants being used. >I'm not sure what the best way to handle this is. I'd just add () after each "constant." -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/