Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Moose - ensuring a getter returns a number

by Fletch (Chancellor)
on Feb 17, 2011 at 16:03 UTC ( #888745=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    around 'now' => sub {
      my $orig = shift;
    ...
    
      return $self->$orig( @_ ) + 0;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://888745]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-06-22 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (528 votes). Check out past polls.