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

"Indirect" object syntax?

by muba (Priest)
on Nov 23, 2015 at 02:30 UTC ( #1148361=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      $ball = new Ball:Soccer;  # Creates a soccer ball. 
      kick $ball;               # Ball::Soccer defines sub kick {...}
                                # I.E. this reads $ball->kick;
    
  2. or download this
    $ball = new Ball::Soccer;
    $john = new Person;
    give $john $ball;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1148361]
Approved by Athanasius
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2019-11-12 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (64 votes). Check out past polls.

    Notices?