[Templates-svn] r1050 - trunk/lib
svn@template-toolkit.org
svn@template-toolkit.org
Wed, 14 Mar 2007 19:27:09 +0000
Author: abw
Date: 2007-03-14 19:27:09 +0000 (Wed, 14 Mar 2007)
New Revision: 1050
Modified:
trunk/lib/Template.pm
Log:
changed binmode comparison to eq to prevent warnings in Template.pm
Modified: trunk/lib/Template.pm
===================================================================
--- trunk/lib/Template.pm 2007-03-14 18:26:44 UTC (rev 1049)
+++ trunk/lib/Template.pm 2007-03-14 19:27:09 UTC (rev 1050)
@@ -190,7 +190,7 @@
elsif (open(FP, ">$where")) {
# binmode option can be 1 or a specific layer, e.g. :utf8
my $bm = $options->{ binmode };
- if ($bm && +$bm == 1) {
+ if ($bm && $bm eq 1) {
binmode FP;
}
elsif ($bm){