Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Comment on

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

Perl is a very supple language, but it has its quirks. For instance, it isn't at all obvious that scalar keys %$some_hash returns the number of hash elements in constant time. (We had quite a thread on that one, complete with BrowserUK benchmarking). Nor is it obvious that die; (without any parameters) rethrows an exception. Somebody thought that $#some_array was an intuitive way of specifying the last index of an array, but it wasn't me. Nor do I think scalar @some_array is a particularly obvious way of saying "I want the size of the array". I could come up with quite a list of these oddities.

So perhaps the starting point is to say, "yes, there are parts that are difficult" and then maybe ask them to explain further. Once someone names specifics it is much easier to say "yeah, but that's bad practice and no longer recommended to new programmers". Or if they are talking about something that is hard but powerful, like regexes, one could say: "yes, that is hard, but it allows so much power in just a few keystrokes". And if they are in fact talking about some of the more arcane syntax, well, just agree, but point out that those are just one small part of a language. Every language has its awkwardness. Why, for example, in Java do I have to declare a whole class using boilerplate code just to have a closure?

The other part of their response "Perl only exists as long as Bio data is in text files" completely misses the point as to why Perl is the tool of choice. It isn't the file format that makes bio data text like - it is the gene sequences themselves. As long as RNA and DNA comes in chains, you will need regexes and as long as Perl is the regex processor of choice, it will have a use.

In reply to Re: What's it with Perl Syntax ?! by ELISHEVA
in thread What's it with Perl Syntax ?! by biohisham

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 monks are mute...

    How do I use this? | Other CB clients
    Other Users?
    Others meditating upon the Monastery: (3)
    As of 2017-12-14 23:38 GMT
    Find Nodes?
      Voting Booth?
      What programming language do you hate the most?

      Results (414 votes). Check out past polls.