$ echo '{a=>1},{a=>2}' | perl -Mstrict -MData::Dumper -e 'my @l=do "/dev/fd/0"; print Dumper \@l' $VAR1 = [ { 'a' => 1 }, { 'a' => 2 } ];