Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Using perlclass 'methods'

by Anonymous Monk
on Jul 18, 2024 at 06:31 UTC ( [id://11160668]=note: print w/replies, xml ) Need Help??


in reply to Using perlclass 'methods'

method gear_inches { return ratio * $rim + ($tire * 2); }

Try instead (call it incomplete implementation or anything else) ...

method gear_inches { return ($self->ratio() * $rim) + ($tire * 2); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11160668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-09-09 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.