NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
What problem were you solving? (Score:2)
--
xoa
Re:What problem were you solving? (Score:1)
I am testing to ensure that an object returned by a function is actually the same object received by a previous call to this function. In OO terms, I testing to make sure a class is a Singleton.
I tried the XS route, until Randal's suggestion above, because I needed the address of what the
RV*'s were pointing to. The new route ofis((ref $a && ref $b && $a == $b), 1)isn't pretty, but it works just fine. Also, I got a good look at howTest::BuilderandTest::Builder::Testerwork, so I wouldn't say my little exercise was a total waste of time. A cleaned up version of theisabove might be nice, but I doubt if there are people clammoring for a new module to come out of that.Reply to This
Parent