use warnings; can be simplified to just #!/usr/bin/perl -w

That's not true; the warnings pragma has lexical effects. The -w flag does not.

Strict is a compile time thing and has no impact upon code execution time.

Strict reference checking occurs at runtime.

It enforces scoping rules as one of the main things.

strict has nothing to do with scoping rules. You can use fully qualified package globals everywhere and strict will not complain.

The syntax: &sub_name is deprecated.

Discouraged, perhaps (except for tail calls) but not deprecated.

You can just say "sub_name;"

Not always -- if you have strict enabled.

#effect: literally shift off the stack passed

This is misleading. (How do you pass a stack?)

#effect: make copy from stack passed

This is doubly misleading.


In reply to Re^2: Subroutine references inside of a hash with arguments. by chromatic
in thread Subroutine references inside of a hash with arguments. by shift9999

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.