in reply to Shell-like "print"
Anyway, in Perl if you want print or printf to not print a newline, just don't put a newline in the string to print. It will only print out a newline if you tell it to print a newline.
As for Perl printing out the line until the in between code is finished, that's because of buffering. You can turn buffering off by setting $| to 1.
See also 'man perlvar'.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Shell-like "print"
by monk_wannabe (Initiate) on Oct 17, 2003 at 20:31 UTC |