in reply to Re^3: Getopt::Long to define or not to define?
in thread Getopt::Long to define or not to define?

Yes, actually, i am saying that there are cases where this is useful. One i just thought of that doesnt actually apply to input, but rather to return values is the built-in wantarray(). The return values are as follows

undef if the sub was called in void context
defined but false if the sub was called in scalar context
true is the sub was called in list context.

  • Comment on Re^4: Getopt::Long to define or not to define?