- or download this
$/ = undef;
my $string = <$filehandle>;
- or download this
my $old_terminator = $/;
$/ = undef;
my $string = <$filehandle>;
$/ = $old_terminator;
- or download this
my $string;
{
local $/ = undef;
$string = <$filehandle>;
}
- or download this
my $string;
{
local $/;
$string = <$filehandle>;
}
- or download this
my $string = do {
local $/;
<$filehandle>;
}
- or download this
local $/ = <$filehandle>