Fixed binmode call in helper
Andy Grundman [Thu, 20 Oct 2005 20:40:10 +0000 (20:40 +0000)]
lib/Catalyst/Helper.pm

index 64dad70..2ae3996 100644 (file)
@@ -217,7 +217,7 @@ sub mk_file {
         $file .= '.new';
     }
     if ( my $f = IO::File->new("> $file") ) {
-        $f->binmode;
+        binmode $f;
         print $f $content;
         print qq/created "$file"\n/;
         return 1;