Keep It Simple, Stupid | |
PerlMonks |
Re^3: subroutine refsby Athanasius (Archbishop) |
on Sep 15, 2013 at 06:45 UTC ( [id://1054162]=note: print w/replies, xml ) | Need Help?? |
Removing the intermediate assignment to $name, broquaint’s code simplifies to:
which is explicitly documented as an exception to the normal behaviour of strict 'refs' (see strict):
So, yes, this is canonical. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|