If you restrict your 'no strict' to a very small block, it's really no
problem at all. Best practice is to apply it to the smallest possible
block possible. This would be even better than what I initially wrote:
foreach ... {
# "setup" code here
{
no strict 'refs';
$$varname = <simple expression>;
}
}
"simple expression" is ideally a single variable whose value you
initialize in the "setup" code. Minimal code under 'no strict' means
fewer possible errors.
-- Jeremy
On Thu, 2008-10-16 at 12:25 -0600, Palit, Nilanjan wrote:
> I didn't know that usage model for strict refs. Thanks!
> Though, as you & others said, the moral issues still remain with that!
>
> -----Original Message-----
> Actually Nilanjan, you can just turn off strict refs inside the block
> where you write your new code. No need to turn it off for the entire
> program.
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm