What is the right way to see if an object has certain attribute?

I tried
if $obj->can('foo')  {}

but got burned when something like 'import/export' gets in a way.
Do I have to maintain the list of attributes (an another attribute !!!) as I create them?

--

Yuri

Reply via email to