Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

OOP: A Bird's Eye View

by Arunbear (Prior)
on Oct 27, 2015 at 16:04 UTC ( [id://1146129] : perlmeditation . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $farmer->move_flock($pasture);
    $farmer->monitor_flock();
    $farmer->move_flock($home);
    
  2. or download this
    $farmer->move_flock($pasture);
    $farmer->monitor_flock();
    $farmer->move_flock($home);
    
    $farmer->other_important_work();
    
  3. or download this
    $shepherd_boy->move_flock($pasture);
    $shepherd_boy->monitor_flock();
    $shepherd_boy->move_flock($home);
     
    $farmer->other_important_work();
    
  4. or download this
    $sheep_dog->move_flock($pasture);
    $sheep_dog->monitor_flock();
    $sheep_dog->move_flock($home);
     
    $farmer->other_important_work();
    
  5. or download this
    $sheep_dog->monitor_flock();
    
  6. or download this
    $sheep_dog->{brain}{task}{monitor_flock} = 1;