Jeff Westman wrote:
> I am calling a function that returns a value, 0 or 1.  The value (1)
> is being captured in my variable ($goodRC), but is -ALSO- being
> displayed on STDOUT! 
> 
> <---------------snippet----------------->
> sub edHeader()
> {
>    ...
>    return 1;
> }
> $goodRC = editHeader();
> print "more code, blah, blah. blah\n";
> <---------------snippet----------------->
> 
> and I get:
> 1more code, blah, blah. blah
> 
> I don't want the "1" !  I know I can do something like
>   if ($editHeader() == 1) { print "whatever...." }
> 
> So, if I am capturing the return value, why would it be displayed
> also?????? 

You show us (part of) sub edHeader, but call editHeader, so who can say
what's happening?

Post the exact code causing the problem. If it's lengthy, strip it down to
the shortest example that still replicates the problem. (You'll probably
find it yourself in the process...)

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to