in reply to Getopt::Auto question

Getopt::Auto handles arguments by calling functions with the same name, so if you specify that your program takes an 'edit' option, you need to make sure it has a subroutine named 'edit'.

Replies are listed 'Best First'.
Re: Re: Getopt::Auto question
by talexb (Chancellor) on Feb 21, 2003 at 03:39 UTC

    Yes, I got that part, but the functionality that I wanted Getopt::Auto to handle was setting $main::options{'v'} to 1 when I passed '-v' as one of the run-time arguments. That part of it doesn't seem to be happening.

    I kind of hate to write my own argument parsing code, but I may just have to bite the bullet and do it. Or peruse Simon's code and see what's happening inside.

    --t. alex
    Life is short: get busy!

        Good question .. my co-worker isn't keen on those three modules but wanted to try Getopt::Auto instead. I'm trying to get it running, trying just the examples in the man page. When those don't work, I figure I've missed something fundamental -- hence, my post.

        --t. alex
        Life is short: get busy!