Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by TheDamian (Vicar)
on Sep 28, 2001 at 11:06 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://115329]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-16 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found