On Thu, 24 May 2001, Tim Scott wrote:

> I agree it should match the other platforms.
> 
> PS: Thanks for the info - I now know how what the equivalent of '/dev/null'
> is on VMS :)

Hmm, ... odd.  I thought that there already was a module in the core to
provide a platform independent null device.  I thought that there was a
proposal for File::*.pm to provide "NL:" on VMS, "/dev/null" on Unix,
"NUL" on Windows, etcetera.  There's no such module in perl@10176
though.  perlport mentions NUL and COM1, COM2 in connections with windows
but does not mention NL: on VMS.  It apparently has not been abstracted
out of MakeMaker and low and behold we do not even have a
$self->{DEV_NULL} in MM_VMS.pm:

$ sea DRA3:[PERL.LIB.EXTUTILS]*.* DEV_NULL

******************************
DRA3:[PERL.LIB.EXTUTILS]MM_UNIX.PM;1

    $self->{DEV_NULL} ||= "> /dev/null 2>&1";

******************************
DRA3:[PERL.LIB.EXTUTILS]MM_WIN32.PM;1

 $self->{'DEV_NULL'} = '> NUL';

How very odd indeed.

Peter Prymmer


Reply via email to