Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi, John.

I wanted to contribute a little to this thread. As flay mentioned, your heart is clearly in the right place. But (yes, there is a 'but...'), it is very important to keep an open mind. One of perl's major colloquialisms or mottos is "TIMTOWTDI" or, "There Is More Than One Way To Do It," or, as I like to say, "Several Methods Exist For The Accomplishment Of Your Task" SMEFTAOYT. < grin >

flay's observations are correct. To say that no one language is as good as perl or will ever be as good as perl is painting with an awfully big brush.

Im going to give you a couple examples, and I hope the rest of the monks realise I'm not trolling here.

Languages like Python and Pascal are excellent languages to teach with. I think most professional programmers learned on one of those, though many also learned on C. Perl is often very confusing to novice programmers because it is so loosely typed, and things can appear vague. In some cases, "One Way To Do It" is easier to understand than others.

While Perl is a truly cross-platform language, sometimes its necessary to have a cross-platform compilable program. I work daily in the OpenNap server package, which is written in C. More information is available on my home node. It simply isnt practical to write that software in perl. Sure, perl could do it, and there *is* a napster server written in perl, but one begins to wonder why you would use perl for that task rather than something a little more appropriate. (as an aside, pircd /* an IRCd written in perl */ is excellent!)

I had a question, a couple hours ago, about behaviour of the Bourne-Again SHell (bash) in unix. I was trying to figure out what this command would do:

bash$ echo "foo" >*
Would it overwrite all the files in the directory with "foo"? Would it overwrite the first file in the directory? To test it, my solution was thus:
bash$ for i in foo bar baz bletch ; do cp /dev/null $i ; done bash$ echo "foo" >*
The first line is my example. Sure, I could have done that in perl:
foreach qw(foo bar baz bletch) { open I, ">$_"; print I $_; close I }
But one has to wonder why somebody would go to the trouble to do that when, in this case, clearly, its quicker and more concise to whip it up in a shell oneliner.

I love perl just as much as the next guy. I've got the bumper stickers and t-shirts. Im a #perl chanop and the whole shebang. Sometimes, however, perl is just not the right tool for the job. Sometimes, something else can do that job better than perl. Perl is not the biggest programming language out there, or the most popular, or the best, or any of that. Perl just happens to be a language that we all love a great deal.

Before I step down from this Soap Box, I wanted to give you a link thats been tossed about this great perl community of ours for a while.

Keep the shiny side up,

p.s., for anyone interested, the shell loves you. we get "ambiguous redirect" in bash if we pass it '*' as our redirect filename.

i am not cool enough to have a signature.

In reply to Re: The Spirit of Perl by deprecated
in thread The Spirit of Perl by john1987

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (4)
    As of 2019-04-19 02:18 GMT
    Find Nodes?
      Voting Booth?
      I am most likely to install a new module from CPAN if:

      Results (106 votes). Check out past polls.

      • (Sep 10, 2018 at 22:53 UTC) Welcome new users!