in reply to Redirect filtered PPM screen output to a file.

qx returns a list of lines when in a list context:

perl -e "print for grep ! /up to date/, `ppm upgrade`" > update.txt

- tye        

Replies are listed 'Best First'.
Re^2: Redirect filtered PPM screen output to a file.
by davido (Cardinal) on Sep 20, 2004 at 05:32 UTC

    Thanks tye. I should have re-read perlop, since it is so seldom that I use the qx// (and backticks) operators.

    While we're at it, print prints lists too. ;)

    perl -e "print grep ! /up to date/, `ppm upgrade`" > update.txt


    Dave