Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 about the Monastery: (3)
As of 2022-01-25 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?