Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Usage of File::Spec->devnull() on Windows

by BrowserUk (Pope)
on Jul 30, 2012 at 20:17 UTC ( #984510=note: print w/replies, xml ) Need Help??

in reply to Re: Usage of File::Spec->devnull() on Windows
in thread Usage of File::Spec->devnull() on Windows

The /dev/null device on windows is now NIL

That is not true.

The nul device on wihdows is any file with a name that (without any extension) equals 'nul' in any case.

Ie nul, NUL nUl, Nul; NUL.TXT, nul.TXT, NUl.tXt, nul.exe, .\nul, .\..\cwd\fred\..\nul.asmanycharactersafterthedotasyoucaretoadd

C:\test>md newdir C:\test>cd newdir C:\test\newdir>echo . > NIL C:\test\newdir>dir 30/07/2012 21:06 <DIR> . 30/07/2012 21:06 <DIR> .. 30/07/2012 21:06 4 NIL 1 File(s) 4 bytes 2 Dir(s) 101,782,999,040 bytes free C:\test\newdir>echo . > NUL C:\test\newdir>echo . > nul C:\test\newdir>echo . > NuL C:\test\newdir>echo . > ./../newdir/nul C:\test\newdir>echo . > nulpoint C:\test\newdir>echo . > nul.txt C:\test\newdir>echo . > nul.exe C:\test\newdir>echo . > c:\test\newdir\nul.1231243345345 C:\test\newdir>dir Volume in drive C has no label. Volume Serial Number is 8C78-4B42 Directory of C:\test\newdir 30/07/2012 21:07 <DIR> . 30/07/2012 21:07 <DIR> .. 30/07/2012 21:06 4 NIL 30/07/2012 21:07 4 nulpoint 2 File(s) 8 bytes 2 Dir(s) 101,783,220,224 bytes free

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984510]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2018-06-20 00:04 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.