Here's a concise snippet showing how nice it would be to have macros. I'm writing a better, static version that runs a BEGIN-time version but I could have been done already. I'm grumpy.
my @attr = eval join ',', map sprintf( 'map( $self->stringify_%1$s( $op, $_ ), @%1$s_attribu +tes )', $_ ), qw( string number unhandled treeorder execorder );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Macro-envy, a snippet.
by Aristotle (Chancellor) on Feb 21, 2006 at 02:33 UTC | |
|
Re: Macro-envy, a snippet.
by dragonchild (Archbishop) on Feb 20, 2006 at 16:02 UTC | |
by BrowserUk (Patriarch) on Feb 21, 2006 at 07:54 UTC | |
by dragonchild (Archbishop) on Feb 21, 2006 at 12:52 UTC | |
by diotalevi (Canon) on Feb 21, 2006 at 15:39 UTC | |
by BrowserUk (Patriarch) on Feb 21, 2006 at 18:56 UTC | |
|
Re: Macro-envy, a snippet.
by ysth (Canon) on Feb 20, 2006 at 07:46 UTC | |
by diotalevi (Canon) on Feb 20, 2006 at 07:58 UTC | |
by Aristotle (Chancellor) on Feb 21, 2006 at 07:49 UTC | |
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 | |
by tilly (Archbishop) on Feb 24, 2006 at 04:34 UTC | |
|
Re: Macro-envy, a snippet.
by tilly (Archbishop) on Feb 24, 2006 at 04:31 UTC |