Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: OO Perl: calling a constructor within a class

by TheDamian (Priest)
on Sep 28, 2001 at 11:06 UTC ( #115329=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $name  = '' unless defined $name;
        $rank  = '' unless defined $rank;
        $c_num = '' unless defined $c_num;
    
  2. or download this
        foreach ($name, $rank, $c_num) { defined or $_ = '' }
    
  3. or download this
        $_ = '' for grep !defined => ($name, $rank, $c_num);
    
  4. or download this
        $name  = '' if weight($name)  == weight($duck);
        $rank  = '' if weight($rank)  == weight($duck);
        $c_num = '' if weight($c_num) == weight($duck);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-05-10 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (108 votes). Check out past polls.

    Notices?