At 6:57 PM -0500 11/19/01, Michael G Schwern wrote:
> Something in vmsperl has decided that you always
>need a newline at the end of a print.
>
>$ perl -e "print 'foo'"
>foo
>$
As Peter said, it's probably in the terminal driver (or the mailbox
driver in the case of a pipe). I tried modifying runperl like so:
--- t/test.pl;-0 Thu Nov 15 19:10:54 2001
+++ t/test.pl Sat Nov 17 15:47:18 2001
@@ -249,6 +249,7 @@
}
my $result = `$runperl`;
$result =~ s/\n\n/\n/ if $is_vms; # XXX pipes sometimes double these
+ $result =~ s/\n$// if $is_vms; # backquotes always give you \n at the end
return $result;
}
[end]
but that didn't quite get switches.t working either, so there must be
more to it than that; I just haven't figure out what yet.
--
____________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]
"Literary critics usually know what they're
talking about. Even if they're wrong."
-- Perl creator Larry Wall