in reply to Re: 'global' variables in small scripts -- a question of style?
in thread 'global' variables in small scripts -- a question of style?

++ctilmes,

I wish it would be that easy ;), I would have to change utils.pm for that, and that means every check-script I've written. The way this is handled is given to you via the plugins-'framework' of nagios, so I just used it in the beginning of my nagios endeavour.

It's something I hopefully accomplish before I leave here, to leave behind yet better maintainable code ;-)

regards,
tomte


Hlade's Law:

If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.

  • Comment on Re: Re: 'global' variables in small scripts -- a question of style?