in reply to Would GD draws in command line
Assuming you want to just save it to file? Yes!
Instead of printing to STDOUT, (like in a CGI program), you print to a file.
open(OUTPUT, ">$0.gif") or die "Can't open $0.gif: $!\n"; print OUTPUT $image->gif(); close(OUTPUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Would GD draws in command line
by Anonymous Monk on Nov 08, 2010 at 17:01 UTC |