Usage of --help and --version in getopts()

From: Hans van Vooren (Hans.van.Vooren_at_gmx.net)
Date: 05/27/04

  • Next message: lyoute: "nested hash"
    Date: 27 May 2004 02:08:00 -0700
    
    

    Hi,

    this is probably an easy question: I would like to use the --version
    and --help features of getopts(), but despite the description on
    perldoc.com I can't make it work. My script just gives out the
    'Unknown option' warnings when I call
    'foo.pl --help'. Can anyone help, maybe give an example?

    Hans van Vooren


  • Next message: lyoute: "nested hash"