Dump the hash : Hash Output « Hash « Perl






Dump the hash

   

#!/usr/bin/perl

use warnings;

use Data::Dumper;

my $hashref = {a=>1, b=>2, h=>{c=>3, d=>4}, e=>[6, 7, 8]};

print Dumper($hashref);

   
    
    
  








Related examples in the same category

1.Display a hash with print
2.Display the list of values
3.Output nested hash
4.Print mixed structure