do{...} is a nice way to encapsulate the process.
my $page = do { local $/; open my $pagefile, '<', $success or die $! <$pagefile>; };
Dave
In reply to Re: read file into scalar
by davido
in thread read file into scalar
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |