Michael G Schwern wrote:


ie. get the object from the tied variable and then treat it like any other object.

isa_ok tied $var, "A::Class";



tie() always returns an object.




   use Tie::File;
   tie @data, 'Tie::File', $file or die;
   is_tied(@data, $file, "[EMAIL PROTECTED] is tied to \$file");


That can't work as you can't tell what particular thing a variable is
tied to in any sort of universal way... it could be tied to anything.
You can only tell the class and get at the underlying object.

To find out what file a Tie::File variable is tied to you have to use some
Tie::File specific method.


Thanks. Tie::File is the Tie::* module I use most often -- and in normal use I don't explicitly call for the returned object. So that's why I was puzzled.


jimk

Reply via email to