| Module Info
| Add a review of File-Slurper
Perhaps there are some edge cases which aren't covered by this, but this module is definitely good enough for almost all of the times you need to read some piece of text in from a file without all the "local $/", "while (<>)", and other kinds of tedious things.
Who'da thought that something as seemingly simple as "slurping a file into a string" would need several modules and false starts? Well, if you add encodings, Perl I/O layers, scalar/list context, DWIM-ness, ... it can get complex and buggy. I'm glad there are people taking care of this and making sure that a simple task stays simple and correct.