in reply to Re^3: Processing arguments with Getopt::Long
in thread Processing arguments with Getopt::Long

I don't agree with messing with internals of an object (and one that's undocumented at that) just to avoid an extremely simple "if".
  • Comment on Re^4: Processing arguments with Getopt::Long

Replies are listed 'Best First'.
Re^5: Processing arguments with Getopt::Long
by Eliya (Vicar) on Feb 18, 2011 at 20:52 UTC
    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.

      I was just voicing my agreement in order to emphasise.