SPUG: GD file save

Richard A Puckett II puckett at speakeasy.org
Tue Jan 4 18:39:27 CST 2000


marlin wrote:

>         ####write to file -- from Linux module docs, does not work
>         $gif_data = $im->gif;
>         open (MYFILE,">testsave.gif") || die;
>         binmode MYFILE;
>         print MYFILE $gif_data;
>         close DISPLAY;

  Do you really mean "close DISPLAY"?  Do you really mean "close MYFILE"?
You're using strict and perl -w, right?  :)

- Richard.


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
        Email to majordomo at pm.org: ACTION spug-list your_address





More information about the spug-list mailing list