Of course abstracting such things away is the right way to go; but you still often need temp variables. So this refactoring technique should probably be promoted as "do what common sense tells you", not as "remove temp vars".
Memoize is a good thing too, btw. Even better with Memoize::Attrs.
In reply to Re^3: Refactoring Perl 4 - Replace Temp with Query
by akho
in thread Refactoring Perl #4 - Replace Temp with Query
by agianni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |