Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: shift vs @_

by jhourcle (Prior)
on Oct 03, 2006 at 15:05 UTC ( #576091=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $self = __PACKAGE__;
        $self = shift if UNIVERSAL::isa ($_[0], __PACKAGE__);
    
  2. or download this
    Child->test();
    
    package Parent;
    ...
    
    package Child;
    use base Parent;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-12-18 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (44 votes), past polls