in reply to Perl's own Duff's device?

I think that the reference trick for CGI.pm's html generators would qualify. For example,

use CGI ':standard'; my @foo = qw/foo bar baz/; print p({}, @foo), $/; print p({}, \@foo), $/; __END__ <p>foo bar baz</p> <p>foo</p> <p>bar</p> <p>baz</p>
That's pretty puzzling to somebody who doesn't know that CGI.pm convention. Very useful if you have to build a table on the fly.

The need for that has pretty much disappeared with the adoption of powerful Template mechanisms.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Perl's own Duff's device?
by blazar (Canon) on Dec 22, 2005 at 16:50 UTC

    Well, that's interesting and... I didn't know about it! It may be certainly useful for quick hacks...

    Actually it may make some code of mine which massively uses the shortcut functions even simpler/cleaner.