in reply to What do I need to add?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What do I need to add?
by BrowserUk (Patriarch) on Dec 22, 2010 at 19:22 UTC |