Skip to content

Instantly share code, notes, and snippets.

@makotoworld
Created July 3, 2009 08:24
Show Gist options
  • Save makotoworld/140002 to your computer and use it in GitHub Desktop.
Save makotoworld/140002 to your computer and use it in GitHub Desktop.
#!usr/bin/perl
use Perl6::Say;
use Data::Dumper;
my %hash = ('makoto' => 'perl',
'nozaki' => {});
sub push_hash{
my %hash = @_;
foreach(keys %hash){
if($hash{$_} !~ /HASH/){
say $hash{$_};
}
}
}
say "\$hash{nozaki} = {}";
push_hash(%hash);
say "\$hash{nozaki} = 'Ruby'";
$hash{nozaki} = 'Ruby';
push_hash(%hash);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment