3 ms·
File::Slurp is broken AF though, and obsoleted by File::Slurper since the original can't be fixed without breaking accidentally working code in the wild. Still
by mst 7y ago
File::Slurp is broken AF though, and obsoleted by File::Slurper since the original can't be fixed without breaking accidentally working code in the wild.
Still mostly fine so long as you know you're only dealing with 7-bit ASCII, IIRC, but Caveat Emptor.
- kbenson 7y agoAh, well I actually use Path::Tony's slurp functionality mostly, depending on if it's already available in the project (which it is in any I set up). It's easier to just say File::Slurp in mixed company so people immediately know what it is if they look it up, rather than them be confronted with a grab-bag of functions.
- Grinnz 7y agoFile::Slurper is just as immediately obvious, and happens to not be fundamentally misdesigned :) Path::Tiny is also great.