I don't agree with messing with internals of an object...
Me neither. Which is why I said "...but whether that's "better" than your (the OP's) attempt is questionable... :)". I thought that was clear enough.
Still, learning comes from exploration, so it's not entirely useless to just play with different approaches... even if you're not going to use them in production code in the end.
In reply to Re^5: Processing arguments with Getopt::Long
by Eliya
in thread Processing arguments with Getopt::Long
by MKJ747
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |