Re: perl_fu_Gimp_Charts

2000-07-30 Thread Ian Boreham

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]>
wrote:
>> 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:

  return;

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.

Regards,


Ian





Re: perl_fu_Gimp_Charts

2000-07-30 Thread Marc Lehmann

On Wed, Jul 26, 2000 at 04:54:30PM +0530, Chetan Dhavse <[EMAIL PROTECTED]> wrote:
> 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.

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |



perl_fu_Gimp_Charts

2000-07-26 Thread Chetan Dhavse



HI!!

I use Perl to script 

I get this warning at the end of each execution

WARNING: perl_fu_Gimp_Charts returned something that is not an image: "1"

Can anyone help me with it I m using version 1.1.4

Chet