Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 the web crawler heard nothing...

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

    My preferred Perl binaries come from:














    Results (200 votes), past polls