I have three opinions on the matter.

1. use strict should prevent people from doing that since it's no different than variables. It could be a bug. But it's documented. This is to make goto &$AUTOLOAD not break.

2. Are you sure that the solution to your problem, which dances around what is "allowed" and what isn't in terms of strictness is correct in the maintainable sense?

3. If you're undermining use strict, but know how what you're doing is "bad" and furthermore, know what you're doing, what does it really matter? You could keep a hash of subreferences, and in practice you'll be doing the same thing (the symbol table is a hash), except in a syntatically more recognizable way. use strict is meant to be a tool that helps you not shoot yourself in the foot. If you find it limiting, or find yourself needing to see where it is limiting to get some work done, I don't think it's being used correctly.

-nuffin
zz zZ Z Z #!perl

In reply to Re: strict and symbolic subroutine refs by nothingmuch
in thread strict and symbolic subroutine refs by tinita

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.