Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Perl losing, unfairly

by zentara (Archbishop)
on Jun 15, 2004 at 12:08 UTC ( #366844=note: print w/ replies, xml ) Need Help??


in reply to Perl losing, unfairly

I can't believe that bash shell wins this contest. Yeah, sh scripts are handy, but Perl is far more useful, and readable.


I'm not really a human, but I play one on earth. flash japh


Comment on Re: Perl losing, unfairly
Re^2: Perl losing, unfairly
by etcshadow (Priest) on Jun 15, 2004 at 20:17 UTC
    Really, it's combining bash and perl that is great fun. for example:
    [me@host]$ more `which whichpm` #!/bin/sh perl "-M$1" -le '$_=shift; s|::|/|g; print $INC{"$_.pm"}' "$1" [me@host]$
    Writing 'whichpm' in perl alone would take a fair bit more space.

    And everyone knows that I love perl command line switches :-D

    ------------ :Wq Not an editor command: Wq
      Or just: perldoc -l
      $ alias whichpm='perldoc -l' $ whichpm HTML::Template /usr/lib/perl5/site_perl/5.8.0/HTML/Template.pm

      -Blake

        Nice... never noticed that. Of course, aliasing it is still a mix of perl and shell, which was my point :-D
        ------------ :Wq Not an editor command: Wq

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-07-06 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls