I don't know too much about redirecting output in Unix, but whatever will
work on the command line should work in system(). Within perl, you can
achieve the same effect with:

    open TMP, "> tmp.txt";
    print TMP foreach `perldoc perldsc`;
    close TMP;

HTH,

Rob


"Sugumar" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm trying this command from my perl program system ( "perldoc perldsc >
> tmp.txt"). I don't see the output going to the file tmp.txt; instead it
> shows the output
> in the screen.How could I get the output in some text file.
>
> Sugumar
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to