package new

package Hoge;
sub new{
  my $class = shift;
  my $foo = shift;
  my $self  = {
    'hoge' => $foo,
  };
  return bless $self,$class;
}
sub Bar {
  my $self = shift;
  my $aaa = shift;
  ## 処理
  return $aaa;
}
1;

↑こんなの作って

use Hoge;
my $foo = 1;
my $h = Hoge->new($foo);
$h->Bar('aaa');

↑こんな感じ?