in reply to Re: Battling Getopt::Long
in thread Battling Getopt::Long

Thanks Tomte!! That's working great!!
From your code could you explain the 'help:i'.
From what I have read to date, the : means it is optional and the i sets it as an integer.
Does that mean that if it exists, it will set $help to 1 otherwise it will be 0?
Thanks again!

Replies are listed 'Best First'.
Re: Re: Re: Battling Getopt::Long
by Tomte (Priest) on May 11, 2004 at 12:57 UTC

    ah no, my mistake...
    change the i to a + and test for $help>0

    regards,
    tomte


    An intellectual is someone whose mind watches itself.
    -- Albert Camus