Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Any way to call GetOptions with evaluated / interpoltated args ?by jjmoka (Beadle) |
on Nov 26, 2018 at 16:06 UTC ( [id://1226355]=perlquestion: print w/replies, xml ) | Need Help?? |
jjmoka has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to call Getopt::Long qw(GetOptions); where the arguments are built previously. Here a normal call to GetOptions: Is there any way to pass the arguments from a previously built scalar/hash/array ? I tried different ecaping (i.e. \$, \\$, \\\$), eval (i.e. eval "GetOptions(...)) eval with explicit global var notation $::arg1 but I cannot have it working.
Back to
Seekers of Perl Wisdom
|
|