At 2:29 PM -0700 5/24/01, Peter Prymmer wrote:
>
>Hmm, ... odd. I thought that there already was a module in the core to
>provide a platform independent null device.
Is this what you're looking for?
$ search/win [.lib.file.spec]vms.pm null
}
=item devnull (override)
Returns a string representation of the null device: '_NLA0:'
=cut
sub devnull {
return "_NLA0:";
}
>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
--
____________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]
"Literary critics usually know what they're
talking about. Even if they're wrong."
-- Perl creator Larry Wall