Yesterday I was trying to uninstall a module by issueing
"make uninstall" and it gave message about this way being
depreciate and suggested to manually remove the files as
listed in .packlist file. It turned out that I was tempted
to do it with one-liner, so here it goes,

% 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


In reply to Removing files listed in another file by hasant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.