Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to sub class-es

by perlfan (Vicar)
on May 19, 2020 at 08:34 UTC ( #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? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2022-01-19 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?