in reply to Calling a script from a script with GetOpt::Long arguments

Hmm, is it really a step backward?

The :

perl heavylifter.pl --file thisfile --db thisdatabase
calling syntax really makes sense in interactive mode (when callinf the program from the shell prompt), but if your program is always going to be called from another script, why not make it simpler? For example calling it with the first positional argument being the DB and then the other arguments a list of files (or possiblky the other way around, but this is a bit less clear in my mind).

Just my two cents.

Je suis Charlie.

Replies are listed 'Best First'.
Re^2: Calling a script from a script with GetOpt::Long arguments
by jjap (Monk) on Mar 03, 2015 at 08:40 UTC
    Your point well taken.

    This is a case I chose to finally get around to learn GetOpt::Long.

    From the inception, I never expected the script would have to deal with a series of files each running 20 to 90 minutes.

    Merci pour le hint...