Adding a standard Perl file open function to each script I have is a bit annoying:
sub openfile{ (my $filename) = @_; open FILE,\"$filename\" or die
that is the famous "slurp mode":
my @lines = ;
you may also see Perl Slurp Ease