in reply to Exporting an Excel Chart to PNG using Win32::OLE
Well spotted, this is of course why it says:
Execute your scripts with perl -w and use strict - this catches most of your errors.
/J\