Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Warning: Bad code ahead!Just messing around (free time at work). I came up with the following, but I do NOT recommend it :)Like I said, it's just me messing around. It would be an interesting way to getting to package globals, but it's more of me just playing around rather than offering it as a serious programming solution. It is BAD CODE. And yes, the dot star is there on purpose. It'll catch package names like Foo::bar::baz. Overall, this sort of problem is reminiscent of the "variable variable" problem as is indicative of underlying design issues that should be addressed. Be very careful of treading on this thin ice.
Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats. In reply to (Ovid warning: bad code ahead) Re: Callback Design
by Ovid
|
|