Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

(lang: nl) Objecten voor beginners

by Juerd (Abbot)
on Dec 17, 2001 at 04:11 UTC ( #132425=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     package Foo;
    
  2. or download this
     sub new {
         my $package = shift;
    ...
         bless $object, $package; # De magie
         return $object;
     }
    
  3. or download this
     my $object = Foo->new;
     # of
     my $object = new Foo;
    
  4. or download this
     package Schaap;
    
    ...
     $dolly->blaat('Hallo');         # Schaap::blaat($dolly, 'Hallo')
     blaat $dolly('Ook dit werkt');  # Schaap::blaat($dolly,
                                     # 'Ook dit werkt');
    
  5. or download this
     sub kleur {
         my ($self, $kleur) = @_;
    ...
    
     $obj->kleur("Blauw");
     print "De kleur is ", $obj->kleur(), ".\n"; # De kleur is blauw.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://132425]
help
Chatterbox?
[marioroy]: Hello all. After several attempts, am able to move forward and will soon release a Parallel:: ForkManager compatible MCE::Hobo:: Manager, also MCE::Hobo::Simple, and refactored MCE::Hobo engine supporting multiple instances. Wait works beautifully.
[marioroy]: MCE::Shared has been refined that it allows sharing Tie::File and hash objects containing {fh} key.
[marioroy]: It's taken so long to take Hobo to a new level. Threads-like and Parallel:: ForkManager management capaiblities.
[marioroy]: This will complete the 4 years in the making and likely time to move on to something els.
[marioroy]: s/els/else.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-05-26 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?