[Templates] Push a list

Bill Moseley moseley@hank.org
Tue, 31 Jan 2006 13:48:13 -0800


LIST_OPS has:

  'push'    => sub { my $list = shift; push(@$list, shift); return '' },

How about this instead?

  'push'    => sub { my $list = shift; push(@$list, @_); return '' },


    foo.push( 'one', 'two', 'three' );



Any way to do anonymous join? ;)

    ['one', 'two', 'three'].join('+');



-- 
Bill Moseley
moseley@hank.org