Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: cpan modules - pm only?

by mattr (Curate)
on Sep 03, 2005 at 15:38 UTC ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-01-22 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?