in reply to Re^4: turn off strict for production code
in thread turn off strict for production code

That's true in the general case, but in blahblahblah's case, he specifically called them errors. I was providing help to blahblahblah, not making a general comment.

In general, it's probably a good idea to explicitely state no strict 'refs' when using symbolic references. no strict 'refs' could be applied to the whole file, but if possible, it should be localized. For example:

my $ref = do { no strict 'refs'; \*{$sym} };

Replies are listed 'Best First'.
Re^6: turn off strict for production code
by Anonymous Monk on Sep 12, 2005 at 16:35 UTC
    Did he call them errors because they produced incorrect results when run without 'use strict', or did he call them errors because when 'use strict' is in force, the program dies with messages like...
    Can't use string ("joe") as a SCALAR ref while "strict refs" in use at ./refs.pl line 6.
      Why would he want strict on in dev if he was using sym refs intentionally? Anyway, you should be asking him, not me.
        ...Because he inherited a Big-Ball-Of-Mud or got the 'use strict' religion later?