in reply to how to write a perl one liner?

local @ARGV = ('deletefiles.txt'); unlink or warn "$_: $!\n" for <>;

Replies are listed 'Best First'.
Re^2: how to write a perl one liner?
by perl_mystery (Beadle) on Mar 08, 2011 at 08:32 UTC

    Where are we running "p4 delete" in the above code

      so replace unlink with your code :-) or better, follow ikegami's advice
      in the ,