Eric Roode on Fri, 26 Jul 2002 11:00:17 -0400 |
If anyone can shed some light on this, I'd be grateful. TIA. I have a class, DBdate. It overloads no operators. I can go into the debugger, create a new object ("$a = new DBdate('2002-07-26')"), and examine the object ("x $a"). Fine. Now I edit the module file DBdate.pm. I add the following lines, no others: use overload '>' => '_gt', '>=' => '_ge', '<' => '_lt', '<=' => '_le', '<=>' => '_cmp', '==' => '_eq', '!=' => '_ne'; (Those subroutines already exist in the file). Now I go into the debugger, create a new object the same way, and try to examine it. I get: Operation `""': no method found, argument in overloaded package DBdate at /usr/local/lib/perl5/5.6.1/overload.pm line 92. WTH? I'm not attempting to overload '""'. I can't believe that overloaded objects can't be examined in the debugger...?? What am I missing? ======================================================================== Eric J. Roode eric@myxa.com Senior Software Engineer, Myxa Corporation +1(610)234-2623 print scalar reverse sort qw p ekca lre reh ts uJ p, $/.r, map $_.$", qw e p h tona e; **Majordomo list services provided by PANIX <URL:http://www.panix.com>** **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|