The POD (perldoc GD::Graph) suggests something like:
use autodie; ... open my $fh, '>', 'test.png'; binmode $fh; print {$fh} $gd->png;
Update: Added the all-important binmode; thanks to BrowserUk for the reminder.
In reply to Re: What do I need to add?
by chromatic
in thread What do I need to add?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |