in reply to Using Array of Arrays
Needs to be;push @rows, @fields;
Here is an example;push @rows, [ @fields ];
Which produces the output;#!/usr/bin/env perl use strict; use warnings; use Data::Dumper; my @fields = qw/ fred one two three /; my @out; push @out, [ @fields ] for ( 1..3 ); print Dumper \@out;
$VAR1 = [ [ 'fred', 'one', 'two', 'three' ], [ 'fred', 'one', 'two', 'three' ], [ 'fred', 'one', 'two', 'three' ] ];
|
|---|