Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: cpan modules - pm only?

by mattr (Curate)
on Sep 03, 2005 at 15:38 UTC ( [id://488933]=note: print w/replies, xml ) Need Help??


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..

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://488933]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-17 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found