- or download this
my $fh = IO::File->new;
*{$fh} = \ "foo"; # we'll split at foo
...
local $/ = ${*{$fh}{SCALAR}};
@ary = <$fh>;
}
- or download this
{
local $/ = $$$fh;
@ary = <$fh>;
}
- or download this
*{$fh} = \ { input_record_separator => "foo" };
{
local $/ = $$$fh->{input_record_separator};
@ary = <$fh>;
}