good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Removing CODE slot in typeglob / Reversing "use subs ...;"by lodin (Hermit) |
on Jan 04, 2008 at 02:52 UTC ( [id://660366]=note: print w/replies, xml ) | Need Help?? |
The reason I didn't like this was that you couldn't access formats using *foo{THING} in Perl 5.6. I'd missed that *foo{FORMAT} now works (perl58delta). *foo{FORMAT} is not mentioned in either perldata or perlmod, but I found it in perlref. Really, that's not the first place I'd look to see which slots there are in a typeglob ... Thanks for forcing me to try (and fail) to proof that *foo{FORMAT} doesn't work, because that's what I originally intended to reply with. :-) *foo{FORMAT} and the resulting *foo{NAME} for the no-longer-constants was my only conserns, both of which are now solved. So I guess that marks the issue solved, unless you can see some other pitfall with this technique. lodin
In Section
Seekers of Perl Wisdom
|
|