[Templates] y = [ 4,5,6 ]; x.push( y ) ?

Bill Moseley moseley at hank.org
Thu Nov 29 01:09:12 GMT 2007


Hum, I'm doing:

    some_list = object.fetch_some_list;

Then I'd like to do:

    some_list.push( object.fetch_other_list );

Basically, I guess;

$ perl -MTemplate -le 'Template->new->process( \"[% USE Dumper; x = [1,2,3]; y = [5,6]; x.push( y ); Dumper.dump(x) %]" ) || die $Template::error'
$VAR1 = [
          1,
          2,
          3,
          [
            5,
            6
          ]
        ];

But dereference the list.

-- 
Bill Moseley
moseley at hank.org




More information about the templates mailing list