Skip Menu |

This queue is for tickets about the IO-Barf CPAN distribution.

Report information
The Basics
Id: 78788
Status: resolved
Priority: 0/
Queue: IO-Barf

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.01
Fixed in: 0.02



Subject: 'barf' should be in @EXPORT
Given that writing to a file is pretty easy in Perl already, it seems to me that the sole benefit of IO::Barf is quick scripts and one-liners. Making the caller explicitly request to import 'barf' makes it less suited for this purpose. 'barf' should be exported by default. To put it another way: can you imagine anybody wanting to use IO::Barf but not import the only function it provides?
Dne Ne 05.srp.2012 09:23:10, TOBYINK napsal(a): Show quoted text
> Given that writing to a file is pretty easy in Perl already, it seems
to Show quoted text
> me that the sole benefit of IO::Barf is quick scripts and one-liners. > Making the caller explicitly request to import 'barf' makes it less > suited for this purpose. 'barf' should be exported by default. > > To put it another way: can you imagine anybody wanting to use IO::Barf > but not import the only function it provides?
ok. You are right, i can export barf implicitly. I will change it. M.