Bob,

Okay, I found the error.  Thanks for the info still...

FYI, the problem was that I had two consecutive print statements, but the
first one ended with a ',' (since I used to continue to a new line), instead
of a ';'

IE:

     print "This is my first line\n",
     print "This is my second line";


-JW

--- Bob Showalter <[EMAIL PROTECTED]> wrote:
> 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...)


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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

Reply via email to