in reply to Re^5: how to supress stdout
in thread how to supress stdout

No, Perl doesn't know. open invokes the shell when it sees shell meta characters such as > in the command.

Replies are listed 'Best First'.
Re^7: how to supress stdout
by Bloodnok (Vicar) on Dec 13, 2008 at 17:13 UTC
    ikegami, I was commenting on observations we made on my last project (Strawberry perl on XP & Win2K3), where we resorted to using proper re-direction in a call to open() coz it (appeared to) work - having tried and failed to use it [proper redirection] in a DOS command window.

    A user level that continues to overstate my experience :-))

      I don't understand. What do you mean by "proper redirection"? What other kind can it do?

      And what "is only true if the re-direction is done in the shell"?

        By 'proper redirection', I mean the redirection supported by *NIX, not the minimal redirection offered by Windoze.

        'Above will work only when a bourne-like shell (FreeBSD /bin/sh, bash, zsh, etc.) handles the redirection' ... is only true if the re-direction is done in the shell.

        A user level that continues to overstate my experience :-))