in reply to read file into scalar

do{...} is a nice way to encapsulate the process.

my $page = do { local $/; open my $pagefile, '<', $success or die $! <$pagefile>; };

Dave