use Data Dumper to dump the reference : Data « System Functions « Perl






use Data Dumper to dump the reference

      

use Data::Dumper;

$scalar = 0;
$hashref = {};
$arrayref = [$scalar, $hashref];
$hashref->{arrayref} = $arrayref;

print Data::Dumper->Dump([$arrayref, $hashref], [qw(arrayref hashref)]);

   
    
    
    
    
    
  








Related examples in the same category

1.use Data::Dumper;
2.Using Data::Dumper to print the results of tree-based parsing
3.Using Data::Dumper to serialize the structure of a tree of XML document
4.Pass new variable name to Data::Dumper function
5.Use the Data:: Dumper function to output complex value