Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Using constant to override (abstract) methods.

by klekker (Pilgrim)
on Mar 28, 2011 at 08:29 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found