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

Add a POD template, use Pod::Usage and get rid of print_usage() and use pod2usage().
  • Comment on Re: 'global' variables in small scripts -- a question of style?

Replies are listed 'Best First'.
Re: Re: 'global' variables in small scripts -- a question of style?
by Tomte (Priest) on Jun 12, 2003 at 15:18 UTC

    ++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.