in reply to Re^2: Parsing a file with parentheses to build a hash
in thread Parsing a file with parentheses to build a hash

I'd use File::Slurp read_file, but there are lots of ways to do it.

use File::Slurp; my $text = read_file( $filename );

Replies are listed 'Best First'.
Re^4: Parsing a file with parentheses to build a hash (slurp it good)
by toolic (Bishop) on Nov 14, 2014 at 15:15 UTC
Re^4: Parsing a file with parentheses to build a hash
by xcellsior (Novice) on Nov 14, 2014 at 18:38 UTC
    2 lines vs 7 is always a good trade!