Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: object oriented Perl advice / constructor creation in child class

by kcott (Archbishop)
on Jul 10, 2018 at 09:13 UTC ( [id://1218230]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat lib/A.pm 
    package A;
    ...
    );
    
    __PACKAGE__->meta->make_immutable;
    
  2. or download this
    $ cat lib/C.pm
    package C;
    ...
    }
    
    __PACKAGE__->meta->make_immutable;
    
  3. or download this
    $ cat lib/D.pm
    package D;
    ...
    );
    
    __PACKAGE__->meta->make_immutable;
    
  4. or download this
    $ cat lib/C1.pm
    package C1;
    ...
    }
    
    __PACKAGE__->meta->make_immutable;
    
  5. or download this
    $ cat ./acd.pl
    #!/usr/bin/env perl
    ...
    my $c1 = C1::->new();
    
    $c1->foo();
    
  6. or download this
    $ ./acd.pl
    A=HASH(0x25db7c0)
    ...
    D-bar
    whos_who() is in package: C
    $self is in package: C1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-24 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found