Re: Testing Ties

2005-04-17 Thread James E Keenan
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 incorporated

Testing Ties

2005-04-12 Thread James E Keenan
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 we could use like

Re: Testing Ties

2005-04-12 Thread James E Keenan
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

Re: Testing Ties

2005-04-12 Thread Michael G Schwern
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

Re: Testing Ties

2005-04-12 Thread Kevin Scaldeferri
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