hasant has asked for the wisdom of the Perl Monks concerning the following question:
% perl -0777 -ane 'unlink $ARGV, @F' <packlist_file>
The $ARGV is there to remove the packlist file as well. It
could have been shorter by omitting some whitespaces
and unifying switches. But I'm sure it could have been
even shorter by using more obscure codes. There's no error
checking, so removing failures are ignored.
Of course, just to make sure, this isn't an issue about
how to uninstall modules.
s::a::n
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing files listed in another file
by Abigail (Deacon) on Jun 29, 2001 at 16:50 UTC | |
by hasant (Initiate) on Jul 01, 2001 at 22:18 UTC | |
by Abigail (Deacon) on Jul 02, 2001 at 20:38 UTC | |
|
Re: Removing files listed in another file
by kschwab (Vicar) on Jun 29, 2001 at 16:43 UTC | |
by hasant (Initiate) on Jul 01, 2001 at 20:57 UTC | |
|
Re: Removing files listed in another file
by chipmunk (Parson) on Jun 29, 2001 at 17:13 UTC | |
|
Re: Removing files listed in another file
by Anonymous Monk on Jul 02, 2001 at 16:47 UTC |