From: Karen Etheridge Date: Sun, 3 Feb 2013 01:40:52 +0000 (-0800) Subject: use OO syntax for handling subref X-Git-Tag: 0.05~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=83f0ce5451073fa234ba80f4cfee5da45f60988a;p=gitmo%2FMooseX-ConfigFromFile.git use OO syntax for handling subref --- diff --git a/lib/MooseX/ConfigFromFile.pm b/lib/MooseX/ConfigFromFile.pm index f1b5f21..a2d2211 100644 --- a/lib/MooseX/ConfigFromFile.pm +++ b/lib/MooseX/ConfigFromFile.pm @@ -30,7 +30,7 @@ sub new_with_config { $configfile = try { $class->configfile }; $configfile ||= $cfmeta->default if $cfmeta->has_default; if (ref $configfile eq 'CODE') { - $configfile = &$configfile($class); + $configfile = $configfile->($class); } }