in reply to Re: how to write a modified return() call?
in thread how to write a modified return() call?
I would write it as:
Alternatively,my $start_with = another_value or do { warn "Could not get another value"; return; };
but that focusses on the exception, not on the action, so I'll be far less likely to write it that way.do { warn "Could not get another value"; return; } unless my $start_with = another_value;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to write a modified return() call?
by ikegami (Patriarch) on Jul 14, 2009 at 15:13 UTC | |
by ELISHEVA (Prior) on Jul 14, 2009 at 15:41 UTC | |
by ikegami (Patriarch) on Jul 14, 2009 at 15:51 UTC | |
by JavaFan (Canon) on Jul 14, 2009 at 15:58 UTC | |
by ikegami (Patriarch) on Jul 14, 2009 at 16:24 UTC |