Subject: | Mangled banner under Windows |
Date: | Fri, 02 Oct 2009 15:25:05 +0200 |
To: | bug-tvdb-api [...] rt.cpan.org |
From: | tvdb.x.mh2 [...] xoxy.net |
Hello,
banners downloaded with getbanner() are mangled under Windows.
Adding a binmode()-call after opening the GFX-filehandle fixes that.
open(GFX, "> $filename") || die "$filename:$!";
binmode(GFX);
print GFX $$gfx;
Furthermore the example is missing the constructor-call:
my $tvdb = TVDB::API::new('?????','en');
This may have been removed on purpose, due to the necessity of specifying an API key. But it should at least be mentioned...
Regards,
myce
--
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02