On 2002 Jul 31 (Wed) 17:07:17 -0400,
Ronald J Kimball <[EMAIL PROTECTED]> wrote:
>
> On Wed, Jul 31, 2002 at 02:00:22PM -0700, Randall M! Gee wrote:
>> 
>> I'm not sure what the best way to handle this is.  I suspect the best
>> thing to do is to put all the functions that require Win32::IProcess
>> into a seperate module, and then conditionally include that module
>> if you're on a Windoze machine.  But it depends on your code.  It
>> may not be possible to divide things like this.
>> 
>> You could also make sure that all your barewords are imported somehow.
>
> Or, you could call all your barewords with parentheses:
>
> sub runTestHarness {
>     print kMacPerlQuitIfFirstScript();
> }
>
> that will avoid the bareword error, give you the proper value on a Mac, and
> cause a fatal error for calling an undefined subroutine elsewhere.

That's another, valid, approach, and one probably better than the ones
I suggested.

-- Randall M! Gee, Keeper of Gummi Wisdom
([EMAIL PROTECTED])

Reply via email to