Is there any way to turn off the period to underscore translation in the VMSIFY
routine?

I am using the HP kit of Perl 5.8.6 and as the following example shows, a
period in a directory name is being converted to an underscore.

use VMS::Filespec;

$udir1 = '../dir1/dir.period/file';
$udir2 = '../dir1/dir^.period/file';

$vdir1 = vmsify($udir1);
$vdir2 = vmsify($udir2);

printf "$vdir1\n$vdir2";

$ perl test.pl
[-.dir1.dir_period]file
[-.dir1.dir^_period]file

Even when the exta period is escaped it gets translated to an underscore.  This
happens if I invoke VMSIFY directly and also happens behind the scenes (the
Unix filespec is being passed to the copy function in the program where I
discovered this issue).

Is there any way to turn this off or am I going to have to modify code?

Also, it would appear that the Perl version of vmsify is not the same as the C
version (e.g. there is no underscore translation in the Perl version).  Is this
a known issue?

Mark Berryman

Reply via email to