in reply to Buffering and output help needed
The string to be printed is created by concatenating two string literals with the output of incStart() - that means incStart() needs to run first before the final string to be printed is known. Note that incStart doesn't return anything, it just prints stuff directly. This is seriously ugly :-)print "test " . incStart( $Qstart, $Qcount, $Qint ) . "\n";
I suggest you either return the string from incStart instead of printing directly, or you "print 'test '" first and THEN call incStart().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Buffering and output help needed
by richill (Monk) on Oct 07, 2006 at 12:55 UTC | |
by Joost (Canon) on Oct 07, 2006 at 13:10 UTC | |
by richill (Monk) on Oct 07, 2006 at 13:42 UTC |