The simplest Perl solution I can think of is
perl -MIPC::System::Simple=system -nle'system p4 => delete => $_' dele +tefiles.txt
IPC::System::Simple does error checking for you.
Update: Shorter, but the error messages are a little weird:
perl -Mautodie=system -nle'system p4 => delete => $_' deletefiles.txt
In reply to Re: how to write a perl one liner?
by ikegami
in thread how to write a perl one liner?
by perl_mystery
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |