質問させて下さい。

package Hoge;
use IO::File;
sub load {
my $fh = IO::File->new('test.txt','r');
my @tmp = $fh->getlines();
$fh->close();
}
1;

#!/usr/bin/perl
use IO::File;
my $fh = IO::File->new('test.txt','r');
my @tmp = $fh->getlines();
$fh->close();

パッケージだと $fh->getlines(); でエラーになります。
パッケージにする時って何か特殊な事をしないと駄目ですか?