Skip Menu |

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

Report information
The Basics
Id: 50122
Status: resolved
Priority: 0/
Queue: MooseX-Getopt

People
Owner: bobtfish [...] bobtfish.net
Requestors: gordon.irving [...] sophos.com
Cc:
AdminCc:

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



Subject: configfile default does not work for code refs
Date: Wed, 30 Sep 2009 12:58:45 +0100
To: "'bug-MooseX-Getopt [...] rt.cpan.org'" <bug-MooseX-Getopt [...] rt.cpan.org>
From: Gordon Irving <gordon.irving [...] sophos.com>
When the default for configfile is a code ref the call on the attribute to $cfmeta->default returns the code ref, this is then treated in scalar context so the module cannot find the configfile. I have pushed a fix to the topic/default_with_instance at git.moose.perl.org. Its a trival change of using the $class variable as a param to default which then evaluates the codref. Show quoted text
________________________________ Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom. Company Reg No 2096520. VAT Reg No GB 348 3873 20.
Uploaded as 0.23 :)