In my close to a decade of Perl programming, I've never had an opportunity to use format for anything. Am I missing out?

Maybe not. ;-) I'm with you. In my 12 years of perl programming, I've never needed anything that goes beyond the scope of that old friend from my preceding 10 years with C: (s)printf.

Maybe some of my code would be considered by some as "too complicated" or even "suboptimal" as a result, but it's really just a matter of what you happen to be comfortable with.

(And Perl is that rarety among programming languages, where the choice of solution can be a matter of one's own comfort level, rather than being dictated by syntactic constraints or a limited library of available support functions.)


In reply to Re: Useful usage of formats. by graff
in thread Useful usage of formats. by dmitri

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.