use strict; use Data::Dumper; my $key = 4711; my $value = "fubar"; my @jobs; push @jobs, {$key=>$value}; print Dumper \@jobs; ___OUTPUT___ $VAR1 = [ { 4711 => 'fubar' } ];
In reply to Re: array or hash reference
by pelagic
in thread array or hash reference
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |