|
|
| Just another Perl shrine | |
| PerlMonks |
Re^3: Extracting selected fields form file record (don't use File::Slurp References)by eyepopslikeamosquito (Archbishop) |
| on Feb 08, 2022 at 11:40 UTC ( [id://11141227]=note: print w/replies, xml ) | Need Help?? |
|
Noone even mentioned File::Slurp! :) If you must use a module for this, may I suggest Path::Tiny or File::Slurper? See File::Slurp is broken and wrong by Leon Timmermans for why. ... though I agree with haukex below that it's better to do it idiomatically without a module: my $string = do { local $/; <$fh> } File Slurping References
References Added Later
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||