[Bioperl-l] Bio::Graphics problem
Lincoln Stein
lstein at cshl.org
Mon May 12 12:03:21 EDT 2003
Hi Chris,
This is a common problem when Perl scripts try to produce binary output in a
windows environment. You have to specify binmode() on the output filehandle.
Try this at the end of the file:
binmode(STDOUT);
print $panel->png;
Best,
Lincoln
On Wednesday 07 May 2003 06:27 am, Chris wrote:
> Hi,
>
> I am running Bioperl on a Windows XP installation along side ActiveState
> Perl 5.6. I have been trying to run example 6 in the HOWTO section in
> order to familiarise myself with the tools. I'm having problems however,
> with the .png output. I can produce a file but the image is unreadable
> in any image browser. I've tried searching through the archives for
> similar topics to this but as yet have found nothing. Does anyone know
> what may be going wrong?
>
> I've also installed Cygwin and the same thing results.
>
> (Code attached)
>
> Kind Regards,
> Chris
--
Lincoln Stein
lstein at cshl.org
Cold Spring Harbor Laboratory
1 Bungtown Road
Cold Spring Harbor, NY 11724
(516) 367-8380 (voice)
(516) 367-8389 (fax)
More information about the Bioperl-l
mailing list