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

Re: Re-using/changing a class

by Fastolfe (Vicar)
on Feb 10, 2001 at 01:49 UTC ( [id://57490]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyClass2;
    use MyClass;
    ...
    sub overridden {
       print "This is *my* method, overriding MyClass::overridden!\n";
    }
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    sub MyClass::overridden {
       print "I need this to behave differently.\n";
    }
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    my $code = get_some_code_text;
    
    eval "sub MyClass::overridden { $code }";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found