$VAR1 = { 'main.html' => { 'language' => 'HTML', 'filename' => 'main.html', 'type' => 'text/html', 'size' => 713, 'raw_url' => 'THIS IS WHAT I WANT' } }; #### foreach my $g (@gists) { my @files = keys(%{$g->{files}}); my $file = $files[0]; # $file is now main.html print $g->{files}->{$file}->{raw_url}; # ^^ THIS doesn't work!!! }
## foreach my $g (@gists) { my @files = keys(%{$g->{files}}); my $file = $files[0]; # $file is now main.html print $g->{files}->{$file}->{raw_url}; # ^^ THIS doesn't work!!! }