in reply to "ack" and replace in a directory... in Windows?

Populate @ARGV

So  $ perl -i -p -e ' BEGIN { @ARGV = `ack -f --perl`; }  s/foo/bar/g; "

See Iterator::Files and Iterator::Diamond

Replies are listed 'Best First'.
Re^2: "ack" and replace in a directory... in Windows?
by mascip (Pilgrim) on Feb 29, 2012 at 12:17 UTC

    It tries, but fails due to

    Can't open foo.pm (and others) : Invalid argument.

    Thank you though :o)

      chomp @ARGV;

      Also, «-e '» should have been «-e "».

      - tye