Tom Schindl wrote:

But the problem is that XML::LibXSLT is a blessed scalar not a array nor a hash, adding and overwriting methods is no problem but you are running into trouble adding new instance-attributes or am I missing something?

If the object is just a blessed scalar, then AFAIK you won't be able to do anything with it unless you overload all of it's existing methods as well as any new methods you want to use. Then you could store the original object as one element of your new hash and call the original methods from your methods. You might even be able to come up with something clever where you autogenerate all other methods. Get a copy of this book:


http://www.manning.com/Conway/

if you don't already have a copy. It has contains oodles of evil^H^H^Hxcellent code examples... ;~)

John

Reply via email to