On Monday, March 31, 2003, at 11:18 AM, Matthijs van Duin wrote:
On Mon, Mar 31, 2003 at 11:04:35AM -0800, Michael Lazzaro wrote:my bool $x = &result_of_some_big_long_calculation(...args...); return $x if $x;
Is there a way that doesn't require the named variable?
$_ and return given big_calculation();
or:
given big_calculation() { return when true; }
Don't those return C<undef>, as opposed to the value of C<$_>? I.E. wouldn't it be:
$_ and return $_ given big_calculation(); -or- given big_calculation() { return $_ when true; }
MikeL