You're just being paranoid :)
I often use
my $data = do { local(@ARGV, $/) = $file; <> };
Similar but shorter :)
In reply to Re: Any downsides to this slurp idiom?
by tybalt89
in thread Any downsides to this slurp idiom?
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |