Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by jplindstrom (594) on 2008.02.07 17:44 (#60955) Journal
    This goes for "sort" too.

    I'd say that in application code 97.21% (plus/minus .03%) of all subs are meant to be context insensitive.

    So there really is a need for a Perl::Critic plugin that warns against "return CALL_TO_CONTEXT_AWARE_FUNCTION" where the context of the caller leaks into the sub and causes this severe action-at-a-distance.

    (meta: five timeouts posting this)