Thanks. Yeah, that is the way to remove the warning.
The parameter is documented as optional, so I thought the code looked most obvious like that. I'll update my Best Practices.
|Replies are listed 'Best First'.|
Re^3: Closure warning with Perl 5.14? (perlcritic)
by toolic (Bishop) on May 19, 2011 at 12:33 UTC