portable /dev/null ?



I want to run an external command using "system" but discard its
standard output. I know under *nix I could do:

system 'myCmd > /dev/null';

and Windows:

system 'myCmd > nul';

but is there a more portable way to do that?

.



Relevant Pages

  • Re: portable /dev/null ?
    ... and Windows: ... system 'myCmd> nul'; ... IIRC, the IO::All module has a devnullmethod. ...
    (comp.lang.perl.misc)
  • Re: portable /dev/null ?
    ... and Windows: ... system 'myCmd> nul'; ... Rob ...
    (comp.lang.perl.misc)
  • Re: portable /dev/null ?
    ... standard output. ... and Windows: ... system 'myCmd> nul'; ...
    (comp.lang.perl.misc)
  • Re: [Full-Disclosure] lame bitching about xpsp2
    ... >*nix way) you still would whine because they are also working on extending ... >are concerned that you will have to learn Windows, ... >I recall nimda and I don't recall my Windows machines getting infected even ... >BeOS isn't going to cause a great desire to learn computers. ...
    (Full-Disclosure)
  • [SLE] Re: SUSE Firewall primitive shadow of ZoneAlarm in interactive user-control
    ... Linux is poor in real-time, ... There is a fundamental difference in the security model and tools available for windows and for linux. ... Linux is descended (in thought and design concept) from unix -- which was designed for multi-user computer sharing -- usually with no one at the console. ... Even Windows as a server isn't designed as *nix has been. ...
    (SuSE)