in reply to How to get at perl's options in a program
And the grab flags off that. Honestly, though, this smells of an XY Problem. What are you actually trying to accomplish? There are cleaner, cross-platform ways of testing for individual flags. And this method will miss flags in the hashbang.~$ perl -e 'print `ps -o args -p $$`' COMMAND perl -e print `ps -o args -p $$`
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get at perl's options in a program
by mpersico (Monk) on Nov 06, 2012 at 19:50 UTC | |
by tye (Sage) on Nov 06, 2012 at 21:57 UTC | |
by kennethk (Abbot) on Nov 06, 2012 at 21:25 UTC | |
by tobyink (Canon) on Nov 06, 2012 at 22:09 UTC |