in reply to Re: Coding for two platforms in one Script
in thread Coding for two platforms in one Script
The problems with require are that for the Win32::EventLog module (at least) you get lots of 'undefined' errors (with and without -w) when the module is required (although it does continue to run, but makes examining the legitimate output of the script problematic). I also understand that I need to require in each BLOCK that uses functions from that module, well, if I don't I get more compilation errors! I get the impression that I'm incurring more overhead by doing so.
I was unsure about the import function - do I need to use that in every BLOCK that the require appears in?
Thanks for your (and everyone elses!) reply :-)
Pete
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Coding for two platforms in one Script
by perrin (Chancellor) on Dec 05, 2001 at 23:20 UTC | |
by BoredByPolitics (Scribe) on Dec 06, 2001 at 23:19 UTC |
In Section
Seekers of Perl Wisdom