format bug in vmsperl

G

ggl.20.jjpon

Greetings all,

I need some help with format under vmsperl.
Please look at the following sample perl program::

#!/usr/bin/perl

my $str = "First line" . chr(13) .
"Second line should wrap at thirty chars" . chr(13) .
"Next line". chr(13) .
"Last line". chr(13);

format STDOUT =
^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~~
$str
..

write;


On Activestate perl v5.8.7 (running on Windows XP) I get the expected
outputt:
First line
Second line should wrap at
thirty characters
Next line
Last line

But on VMS perl v5.6.1, it gives me insufficient output:
First line
Second line should wrap at
thirty characters
Next line

The VMS platform is OpenVMS v7.3-2 on an Alphaserver DS10.

Can somebody please try it and confirm the bug.
Maybe even provide a work around or fix to this?

Thanks in advance,

Juna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top