use strict; use warnings; use mylib; my $hashref = mylib::load_hash('big.file'); my %hash = %{$hashref};