andlocal( $/, *FILE ) ; open(FILE ,"<$file") or die "could not read file: $!"; binmode FILE; my $raw = <FILE>; close(FILE);
open(FILE, $file ) or die "could not read file: $!"; binmode FILE; my $raw = do { local $/; <FILE> }; close(FILE);
In reply to slurping styles by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |