in reply to Re: Avoiding reference of sub optimization
in thread Avoiding reference of sub optimization
> 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Avoiding reference of sub optimization
by JavaFan (Canon) on Mar 21, 2011 at 14:51 UTC | |
by LanX (Saint) on Mar 21, 2011 at 15:02 UTC | |
|
Re^3: Avoiding reference of sub optimization (notabug)
by tye (Sage) on Mar 21, 2011 at 14:47 UTC | |
by LanX (Saint) on Mar 21, 2011 at 14:52 UTC | |
by tye (Sage) on Mar 21, 2011 at 15:16 UTC |