Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to sub class-es

by perlfan (Vicar)
on May 19, 2020 at 08:34 UTC ( [id://11116931]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Robo;
    use strict;
    ...
    my $robo = Robo->new();
    $robo->{Feet}->walk();
    $robo->{Arm}->pick( "Apple" );
    
  2. or download this
    sub walk {
      my $self = shift;
    ...
      my ($self, $thing) = @_;
      return $self->{Arm}->pick( $thing );
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-19 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found