in reply to Re^4: Module Announcement: Perl-Critic-1.01 (just a scalar)
in thread Module Announcement: Perl-Critic-1.01
Because it's the calling context that matters!
Bare return; does the right thing in both scalar and list contexts. In my mind, that's a good thing.
If you find yourself in an ambiguous situation, then you disambigate by being explicit. It would be nice if there were never ambiguous code, but that's not realistic.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Module Announcement: Perl-Critic-1.01 ("right")
by tye (Sage) on Jan 27, 2007 at 02:58 UTC | |
by chromatic (Archbishop) on Jan 27, 2007 at 03:10 UTC |
In Section
Meditations