No, not yet. My first perl program actually works as expected :) Just concerned about wasting CPU cycles, is all.

My first exposure to OO programming was Actor, a commercial implementation of smalltalk, which I really liked a lot except for how slow it was. To add 2+2, the number 2 had to send a message to 2 telling it to add itself to 2. Ever since I've fretted about concepts like 'early binding' and useless conversions of formats inside loops and such.

I should say I'm astonished at the speed and depth of all the replies to my newbie question and I'm very grateful to all of you. That's the best help in the shortest time I've ever seen, and I've learned good stuff from every reply. Thanks!


In reply to Re^2: When does '123' become the number 123.0? by wa1ter
in thread When does '123' become the number 123.0? by wa1ter

Title:
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, details, 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, summary, 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.