I feel like my Perl is finally loosening up after three years. When I first started using the language I pulled out a lot of hair trying to make it look more structured, like Java. So for a long while I would nearly always use parentheses with methods and functions even when not required, just to make them look more like I thought they ought to. (Recall that in Java Class.member refers to a variable, where Class.member() refers to a (class) method). So I wrote a lot of code like:

return(grep(defined($_), @thingies));
whereas now I'd probably say:
return grep(defined $_, @thingies);

It's also been a recent change for me to use -> for dereferencing rather than prepending an extra $. I used to have a strong aversion to $this->{foo}, preferring instead $$this{foo}, whereas now that aversion is reversed. I suspect that it was originally a consequence of my early discomfort (read: total lack of comprehension) with respect to references, and using the form with fewer characters allowed me to pretend there wasn't anything spooky going on :^)

As a general trend, I find that I'm trying less to force my Perl into accordance with a priori principles and relying more on context (hence my sig). The downside is that I'm making decisions more based upon that nearly always elusive quality called "judgment"; the upside is that I think my judgment is getting better :^)


"The dead do not recognize context" -- Kai, Lexx

In reply to Re: What is your Perl dialect? by djantzen
in thread What is your Perl dialect? by webfiend

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.