NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
In all fairness (Score:1)
The original code doesn’t make it obvious whether anything should be returned or not. Putting in an explicit return – assuming, of course, that you put it in the right place – definitely improves the code.
Re: (Score:1)
I'll also note that rjbs didn't say what the subroutine's documentation says. Maybe it reads "Prepares a report and saves it in $file. Doesn't return a damn thing."
Re: (Score:2)
I have just finished a project for a client, I have disabled 8 policies and have documented as to why I have done so in the POD.
So disable the policy and document it
Re:In all fairness (Score:1)
rjbs
Reply to This
Parent