Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Overriding arguments in Class::Std superclass constructors

by fce2 (Sexton)
on Aug 11, 2006 at 13:30 UTC ( #566829=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package myclass;
    use Carp qw(croak);
    ...
    
        return bless $class->SUPER::new(23), $class;
    }
    
  2. or download this
    package myclass;
    use Class::Std;
    ...
        my ($self, $ident, $args) = @_;
        $args->{value} = 23;
    }
    
  3. or download this
    mysubclass->new;
    
  4. or download this
    Missing initializer label for myclass: 'value'.
    Fatal error in constructor call
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://566829]
Approved by Limbic~Region
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2022-09-26 03:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?