Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Using constant to override (abstract) methods.

by klekker (Pilgrim)
on Mar 28, 2011 at 08:29 UTC ( #895863=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Father;
    use warnings;
    ...
      die('Parent aList');
    }
    1;
    
  2. or download this
    package Son;
    use warnings;
    ...
    }
    
    1;
    
  3. or download this
    #! /usr/bin/perl
    use strict;
    ...
    print join(', ', @{$s->aList()}), "\n";
    
    $s->print_son();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://895863]
Approved by moritz
Front-paged by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2021-12-06 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?