use Config; my $file = "/somedir/somefile"; my $file_obj = Config->new($file);