http://www.perlmonks.org?node_id=488933


in reply to cpan modules - pm only?

The surfable MANIFEST, and some modules have "-PP" (pure perl) added to their names.

Also, you can try
tar -tzf file.tar.gz| perl -nle 'print if /\.c$/'

Replies are listed 'Best First'.
Re^2: cpan modules - pm only?
by Tanktalus (Canon) on Sep 03, 2005 at 15:45 UTC

    First, why would you use perl when grep does just fine? grep '\.[cC]$' is way more succinct. Unix is not just an environment for running perl, you know!

    Second, as just a minor nit, you're missing the v option for tar - without which, your tar command will print out, well, nothing. tar tvzf file.tar.gz | ...

      On my RedHat 9 linux system, tar tzf provides output without needing the v.

      Also grep is a bit different on different systems, and I believe regexes need to be grep -e or use egrep. Anyway I like perl, it works better for me..