in reply to Re: Macro-envy, a snippet.
in thread Macro-envy, a snippet.
So why all the @foo_attributes arrays instead of an %attributes HoA?
I got strict to check my names for me - that wouldn't happen with hash keys. It's also cheaper to use. I use ->$method syntax when forced to but it's verbose. It requires two statements where I previously had one expresssion.
my $m = "stringify_%1$s"; $self->$m( $op, $_ )⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Macro-envy, a snippet.
by Aristotle (Chancellor) on Feb 21, 2006 at 07:49 UTC | |
|
Re^3: Macro-envy, a snippet.
by brian_d_foy (Abbot) on Feb 20, 2006 at 19:23 UTC | |
by diotalevi (Canon) on Feb 20, 2006 at 20:20 UTC | |
by brian_d_foy (Abbot) on Feb 21, 2006 at 06:03 UTC | |
|
Re^3: Macro-envy, a snippet.
by tilly (Archbishop) on Feb 24, 2006 at 04:34 UTC |