Skip to content

Instantly share code, notes, and snippets.

@adeishs

adeishs/hashref-hashref.pl

Last active Mar 21, 2018
Embed
What would you like to do?
Perl hashref of hashref
#!/usr/bin/perl
use strict;
use Data::Dumper;
my $x;
$x->{a}->{b}->{c}->{d} = 1;
print Dumper($x)
=begin output
$VAR1 = {
'a' => {
'b' => {
'c' => {
'd' => 1
}
}
}
};
=end output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.