in reply to Re^2: top ten things every Perl hacker should know
in thread top ten things every Perl hacker should know

There's a difference between elegance for elegance sake (ie. doing something tricky because it has a high geek factor) and elegance because it's good programming (e.g. the Schwartzian transform). I was thinking more of high geek factor code. It might parse better if I s/often/sometimes/.

Jack

  • Comment on Re^3: top ten things every Perl hacker should know

Replies are listed 'Best First'.
Re^4: top ten things every Perl hacker should know
by apotheon (Deacon) on Mar 17, 2006 at 05:28 UTC

    "Tricky" or "clever" is not always elegant. I tend to think of elegance as eschewing the gratuitous. That would mean writing clever code for the sake of being clever does not fit my definition of "elegance".

    print substr("Just another Perl hacker", 0, -2);
    - apotheon
    CopyWrite Chad Perrin