in reply to Most efficient way to load file contents into scalar?

It is probably too big . You could try pre-sizing scalar
my $size = -s FILE; my $giant = ' ' x $size; print "Read ", read(FILE,$giant,$size,0)," of $size bytes";
but if its really big it won't make any difference.