Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Re: Coding for two platforms in one Script

by BoredByPolitics (Scribe)
on Dec 06, 2001 at 23:19 UTC ( [id://130035]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Coding for two platforms in one Script
in thread Coding for two platforms in one Script

I finally worked out what was causing the 'undefined variable' errors, and have resolved them.

The POD docs for Win32::EventLog imply that you can leave undefined variables which you don't want to use. This is true, from a functional perspective, but the module itself doesn't check that everything it's putting into a subroutine call is defined, hence the errors.

So the solution (for this module) is to either define the variables in the Report call properly, or set them to null/zero. I've also found that I need to set the machine name in the new() call, otherwise it also generates an undefined error.

You live and learn ;-)

Pete

  • Comment on Re: Re: Re: Re: Coding for two platforms in one Script

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://130035]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-18 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found