Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Moose stringification overloading isn't working

by dd-b (Monk)
on Feb 09, 2013 at 22:05 UTC ( #1017992=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use overload '""' => \&_stringify;
    sub _stringify {
        my $this = shift;           # Actually operator arg, NOT a "this"
        $this->row->ID;
    };
    
  2. or download this
    $logger->trace("Zep is " . ref($zep) . " stringifies as $zep" . " but 
    +_stringify returns " . $zep->_stringify );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1017992]
Approved by Old_Gray_Bear
help
Chatterbox?
[hippo]: Is the NVIDIA driver problem still a thing?
[zentara]: See problems with Nvidia and Linus Torvalds
[choroba]: that's 2012
[zentara]: I just acquired a computer with the card type, and wondered if it was best to stick with the open-source code or use NVIDIA's proprietary code

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-05-26 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?