> UPDATE to your UPDATE: An array is different since you can change values in it. But you can't edit a subroutine "in flight"
Actually I'm blessing them into a dedicated class to set attributes, so subs with the same body can have different attributes. (like debug informations)
UPDATE: And yes using subs as objects isn't frequently done in Perl ...
Cheers Rolf
In reply to Re^2: Avoiding reference of sub optimization
by LanX
in thread Avoiding reference of sub optimization
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |