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 | |
by ikegami (Patriarch) on Sep 12, 2005 at 17:12 UTC | |
by Anonymous Monk on Sep 12, 2005 at 17:42 UTC |