The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Search results for "module:Perl::Critic::Policy::InputOutput::ProhibitJoinedReadline"

Perl::Critic::Policy::InputOutput::ProhibitJoinedReadline - Use local $/ = undef or Path::Tiny instead of joined readline. River stage three • 133 direct dependents • 408 total dependents

It's really easy to slurp a whole filehandle in at once with "join q{}, <$fh">, but that's inefficient -- Perl goes to the trouble of splitting the file into lines only to have that work thrown away. To save performance, either slurp the filehandle w...

PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC
1 result (0.054 seconds)