in reply to What about if (my $var = foo()) { ... }
I would also add that the idiom could be useful even when the function is pure, but heavy on CPU. Just as a form of self-baked cache.
Hey! Up to Dec 16, 2007 I was named frodo72, take note of the change! Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What about if (my $var = foo()) { ... }
by Limbic~Region (Chancellor) on Dec 30, 2007 at 15:50 UTC |