Not if $class contains "::" (at least not on the last version of Perl I tried it on).
[ Though, I suppose you could throw Data::Diver into the mix to solve that problem and get a much more complicated solution that meets some irrational fear of ever disabling 'strict' :) ]
- tye
In reply to Re^3: RFC: Perl Second-Best Practices ($main::{"a::b::"})
by tye
in thread RFC: Perl Second-Best Practices
by dimar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |