Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
This contrasts with my work in more established languages like C where I know that there is no way I could be doing it better.

Are you certain that there is no better way to do it in C? Maybe there's just no better way that's easy. For instance, in C you have to make the decision whether to use an array or a hash table, just like you do in Perl. Using an array is easy in C, because they're built into the language. Using a hash table is hard, because you have to either write all the hash table code yourself, or find someone else's code and figure out how to use it.

Sometimes, using a hash table is the better solution. They're extremely useful in many situations, so it seems that a language should make it easy to use them. And Perl, as we all know, makes easy things easy.

I sit in front of my screen, turning bits of the code around in my mind, because I'm not sure I've done it the best way. Even when it's finished, it's still not done.

Maybe you're entering the larval stage. Congratulations.

In reply to Re: I can't get no... by no_slogan
in thread I can't get no... by jepri

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!
  • 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 studying the Monastery: (15)
    As of 2015-10-13 14:49 GMT
    Find Nodes?
      Voting Booth?

      Does Humor Belong in Programming?

      Results (309 votes), past polls