- or download this
sub occurences {
my %h;
...
push @{$h{$_}}, $i++ for @_;
return \%h;
}
- or download this
sub occurences { my ($i, %h) = 0; push @{$h{$_}}, $i++ for @_; \%h }
- or download this
$ perl -Mstrict -Mwarnings -e '
use Data::Dumper;
...
7
]
};
- or download this
$ perl -Mstrict -Mwarnings -e '
use Data::Dumper;
...
4
]
};