Skip to content

Instantly share code, notes, and snippets.

@adeishs
Last active March 21, 2018 01:37
Show Gist options
  • Save adeishs/b2b75f6f2211f7bb6e6a8346c8517a92 to your computer and use it in GitHub Desktop.
Save adeishs/b2b75f6f2211f7bb6e6a8346c8517a92 to your computer and use it in GitHub Desktop.
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