| CPAN Ratings (Gamma) File-Slurp reviews | |
| Home | Search | About | Login |
RSS | Module Info | Add a review of File-Slurp
1 out of 1 found this review helpful:
A lovely package that makes simple but tedious tasks easier. Well documented and very useful.
Robbie Bow - 2008-09-04 01:54:21
Was this review helpful to you?
Yes
No
I really liked this module until the first time I got bitten by its failure to interoperate properly with :encoding on filehandles. I've decided it's almost always easier to just localize $/ briefly and read that way. It's a little uglier and more piggish, but it's more likely to work in odd conditions.
Ricardo SIGNES - 2007-05-08 18:19:04
Was this review helpful to you?
Yes
No
Overall, I like this module a lot and use it constantly. I have one huge complaint though. There is a critical dataloss bug in the current version that has been unaddressed by the author for the last two weeks.
This command will truncate the file "foo" to zero bytes regardless of what's in the file.
perl -MFile::Slurp -e'append_file("foo", "")'
This could be fixed by a simple workaround: in the append_file function:
return if (-e $file && $content eq "");
UPDATE: The above bug is fixed and I love this module again! Thanks, Uri.
Chris Dolan - 2005-10-07 10:35:52
Was this review helpful to you?
Yes
No
It just doesn't work all of the time. I can slurp one file, but then the second file it claims doesn't exist or it is unable to read anything from it.
I don't have the time to diagnose why it doesn't work. It was faster to write my own few lines which were adequate for what I needed.
Robert Rothenberg - 2005-08-19 09:41:17
Was this review helpful to you?
Yes
No
I used to list File::Slurp as a dependency for my module, but 9999.01 didn't pass tests. It's also by a different author to the version previously rated as 5*, and has an entirely new codebase.
I replaced it with three lines of code, and for once don't regret the loss of modularity at all.
Paul Mison - 2003-12-17 02:31:04
Was this review helpful to you?
Yes
No
A few convenient functions that help uncluttering your code when you need to read (or write) an entire file into (or from) a scalar or an array.
Of course you could write them yourself, but why? They are in File::Slurp, use them.
The version number is quite surprising: I had never seen a module with a date as the version number, much less a date in the future.
Note that an other module, Slurp, which I have never used, seems to do quite the same thing, in a slightly different way: it lets you slurp several files in a single scalar, array or array_ref, but doesn't have functions to write to a file.
mirod - 2003-09-17 05:36:24
Was this review helpful to you?
Yes
No
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|