package packa; use strict; sub new { my $class = shift; my $self = {}; bless $self, $class; return $self; } sub pass{ my ( $self, $problem1 )= @_; print "$problem1\n"; } sub passhash{ my %hash = qw { dog voa cat mice }; $hash{'problem2'} = [ ["ha" , "thing", "thorw"], ["good", "ssa" , "ham"], ["as", "kid", "wo"], ]; return %hash; }