Skip Menu |

This queue is for tickets about the Getopt-Long CPAN distribution.

Report information
The Basics
Id: 124789
Status: resolved
Priority: 0/
Queue: Getopt-Long

People
Owner: jv [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 2.50
Fixed in: (no value)



Subject: <> does not provide an object
The <> documentation states that the argument "is an object that stringifies to the argument name". But this does not seem to be the case anymore, since Getopt::Long 2.39 or so.
According to the comments in the source: # The arg to <> cannot be the CallBack object # since it may be passed to other modules that # get confused (e.g., Archive::Tar). Well, # it's not relevant for this callback anyway. It was even documented in the 2.39 CHANGES: * Passing an object as first argument to the callback handler for <> turned out to be a problem in cases where the argument was passed to other modules, e.g., Archive::Tar. Revert the change since the added functionality of the object is not really relevant for the <> callback function. However, it was not adjusted in the POD. This will be fixed. Thanks for pointing out.
Fixed in the next release (2.51).