in reply to Calling a script from a script with GetOpt::Long arguments
The :
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).perl heavylifter.pl --file thisfile --db thisdatabase
Just my two cents.
|
|---|
| 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 |