As far as $_, I think that the problem of the many uses can be overcome by simply doing

{ local $_; # stuff... }
.

I haven't seen this do anything too weird, and it provides a good way to overwrite $_ temporarily. It sort of reminds me of elisp's (save-excursion ...) Anyway, here's my answers to the questionnaire -- favorites are first.
(Least) Favorite Perl Instructionlocal; resetSee above. Why reset? Too dangerous, especially when you've got tons of single-char vars.
(Least) Favorite Looping Mechanism{}; forNaked blocks give you more flexibility. for just seems useless to me.
(Least) Favorite ModuleData::Dumper;Dump those objects! No least favorite -- I sort of like them all.
(Least) Favorite Special Var$_; $]$_ is so useful. $] is not.
Favorite Var TypetypeglobVery obfuscatable.
(Least) Favorite Command Line Switch-e; -U-e allows me to do one-liners. -U does unsafe things.
Favorite Pragmause strict; no strict "refs";Good for bugcatching, except when I want to use symbolic references.
Favorite Regexp {Modifier,Metachar}i; \QYes to i! Too much work to manually decapitalize all the time. \Q useful for when arbitrary data comes in which you need to match.
Favorite Descriptive Var Name%zNot very descriptive, but I like it nonetheless.
Favorite HERE doc delimiterprint;Or some other command...
Favorite FilehandleFOOShould be obvious why...


In reply to Re: Re (tilly) 2: The Marcel Perl Questionnaire by premchai21
in thread The Marcel Perl Questionnaire by mirod

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.