Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Path-Class CPAN distribution.

Maintainer(s)' notes

I prefer that bugs & patches are filed on GitHub rather than on RT: https://github.com/kenahoo/Path-Class/issues. Thanks.

Report information
The Basics
Id: 78481
Status: resolved
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: wolfgang [...] kinkeldei.de
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: opposite of slurp - maybe?
Hi, I love to use Path::Class. However, I very often use a 3-liner like this: my $fh = $file->openw; print $fh "something or a variable contents"; $fh->close; I personally would like to see a method named eg. "fill()" (or an even fancier name) that does exactly this. If a list were given, its parts could get joined separated by the $OUTPUT_RECORD_SEPARATOR contents
Hi Wolfgang, Actually we did just add something that does this, but it hasn't been released yet. The method is called $file->spew($contents). I'll try to put a release together soon.