in reply to Displaying randomly created png's in HTML

OK, a few hints:
1. You want to set binmode for STDOUT before you write the $im->png().

2. The html script should look like this:
#!/usr/bin/perl -w print "Content-type: text/html\n\n"; print<<HTML; <html><head><title>testing more</title></head> <body bgcolor=#ffffff> <center> <img src='gd1.pl' height=100 width=100> </center> </body> </html> HTML
HTH

Jouke Visser, Perl 'Adept'
Using Perl to help the disabled: pVoice and pStory