Subject: | Little bug + patch |
Date: | Wed, 13 Aug 2008 20:19:06 +0200 |
To: | bug-CSS-SAC [...] rt.cpan.org |
From: | Paul Capron <paul.capron [...] gmail.com> |
In CSS::SAC::Writer, version 0.03 in CSS::SAC v. 0.08.
Perl version 5.10.0 on Debian.
--> Problem:
Write to a file, defined by 'filename' in the constructor, is broken.
You redefine a variable '$write_to' locally for the `open' call.
Line 59:
open my($write_to), "$options->{filename}" or die $!;
'$write_to' is already defined, locally to the sub, line 47:
my ($mode,$write_to);
--> Patch (kind of...):
Change line 59 for
open $write_to, "$options->{filename}" or die $!;
It solves my problem.
BTW, excellent work nonetheless. I've used a bit CSS::SAC for now and it seems
solid, like the source code. This bug is just kind of a typo ;-)!
Yours,
Paul Capron