in reply to Double your return!!!!
You don't say why you'd want to do this?
In most cases sub x{ ....; return 1 if $ok; return; }
could be replaced by sub x{ ...; $ok;}
And I think I would code do_it() or try_again( "...") or return;
as do_it() or return unless try_again("...");
You could also do return unless do_it() or try_again("...");
I'm vascillating between those as to which is the clearer?
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Double your return!!!!
by Aristotle (Chancellor) on Feb 19, 2003 at 06:55 UTC | |
by BrowserUk (Patriarch) on Feb 19, 2003 at 07:31 UTC | |
by Aristotle (Chancellor) on Feb 19, 2003 at 11:13 UTC | |
by BrowserUk (Patriarch) on Feb 19, 2003 at 13:19 UTC |