Could you re-bless the reference?
# $gd defined elsewhere, inititilized to a # GD::Image instance bless $gd, 'SVG::GD::Image';
This may or may not work.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: hijacking a module constructor
by hardburn
in thread hijacking a module constructor
by hackmare
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |