Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
marioroy Updated Re^3: RFC: Compiling Gtk+ stack on windows with strawberry perl. Also tested Gtk2 installation on Strawberry Perl v5.22.3.1. Installing Tk and Tk::Zinc works fine on Perl v5.22.3.1.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-09-24 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (273 votes). Check out past polls.

    Notices?