Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Is "ref($class) || $class" a bad thing?

by dragonchild (Archbishop)
on Jul 12, 2004 at 16:13 UTC ( #373644=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Foo;
    
    ...
        my $class = ref($proto) || $proto;
        bless {}, $class;
    }
    
  2. or download this
    package Foo;
    
    ...
    
        bless {}, $class;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://373644]
help
Chatterbox?
ExReg takes a cookie from the platter on the sideboard.
ExReg gets a tall glass of milk to wash down the cookies.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2017-04-27 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (497 votes). Check out past polls.