Michael G Schwern wrote:
tie() always returns an object.
The object returned by the "new" method is also
returned by the "tie" function, which would be useful if you
want to access other methods in CLASSNAME.
Your insight's and Kevin's were incorporate
On Apr 12, 2005, at 3:58 PM, James E Keenan wrote:
How do you test that a variable has been tied to a class?
I looked through Test::More; the term 'tie' is conspicuous by its
absence. I also searched the archives of this list and couldn't
locate anything.
I'm looking for something along the lin
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");
T
On Tue, Apr 12, 2005 at 06:58:34PM -0400, James E Keenan wrote:
> How do you test that a variable has been tied to a class?
$ perldoc -f tied
tied VARIABLE
Returns a reference to the object underlying VARIABLE (the same
value that was originally returned by the
James E Keenan wrote:
How do you test that a variable has been tied to a class?
I looked through Test::More; the term 'tie' is conspicuous by its
absence. I also searched the archives of this list and couldn't locate
anything.
I'm looking for something along the lines of Test::More::isa_ok that