programming-examples/perl/SystemFunction/use Data Dumper to dump the reference.pl

8 lines
194 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
use Data::Dumper;
$scalar = 0;
$hashref = {};
$arrayref = [$scalar, $hashref];
$hashref->{arrayref} = $arrayref;
print Data::Dumper->Dump([$arrayref, $hashref], [qw(arrayref hashref)]);