my @myfile = ; my $lines = @myfile; #### undef $/; # enable "slurp" mode $_ = ; # whole file now here