http://www.perlmonks.org?node_id=1019583


in reply to Using HTML Template to fill a 2-dimensional table

Have you read perlintro?

From that tutorial you're reading

$template->param( STUDENT => [ { NAME => 'Bluto Blutarsky', GPA => '0.0' }, { NAME => 'Tracey Flick' , GPA => '4.0' }, ] );

Do you know what those square brackets and curly braces do?

Say it with me:

my $hashref = { 'hasherefs', 'are', 'curly', 'ones' };

my $arrayref = [ 'arrayrefs', 'are', 'square' ];

my %hash = ( 'lists are round' , 'but hashes want pairs');