Michael G. Schwern wrote:

> So it's not the pipe.  Something in vmsperl has decided that you always
> need a newline at the end of a print.
>
> $ perl -e "print 'foo'"
> foo
> $
[snip]
> Compare with what is supposed to happen:
>
> $ perl -e 'print "foo"'
> foo$
>
> No mandatory newline.

I think that the stdio to tty comm channel requires it at image
rundown.  Note the similar behavior of a C program:

$ type try.c
#include <stdio.h>
int main() {
        printf("foo");
        return(0);
}
$ cc try
$ link try
$ run try
foo
$

Note too that perl behaves in the non-Unix way on Windows also
(win2k running perl 5.6.1 here):

C:\>perl -e "print 'foo'"
foo
C:\>

I suspect that the switch.t test needs attention on that platform as well.

Peter Prymmer


Reply via email to