At 16:08 30/7/00 +0200, Marc Lehmann <[EMAIL PROTECTED]> wrote:
>On Wed, Jul 26, 2000 at 04:54:30PM +0530, Chetan Dhavse <[EMAIL PROTECTED]>
>> I get this warning at the end of each execution
>> WARNING: perl_fu_Gimp_Charts returned something that is not an image: "1"
>Then don't do that, and return nothing, i.e. put something like
>at the end of your function.

Or be a bit more explicit about what you're doing, and put:


at the end...

The reason for the behaviour causing the warning is that in the absence of
an explicit "return" statement, a perl sub returns the last evaluated
expression. Obviously, the calling function is checking to see whether
there is a returned value, and whingeing if it is the wrong type.



Reply via email to