Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Reducing Perl OO boilerplate

by blue_cowdawg (Monsignor)
on Feb 18, 2004 at 02:36 UTC ( [id://329821]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Package main:
    
  2. or download this
    my $foo = HeckIfIKnow::new(
      -opt1 => '3456',
      -opt2 => '1234'
    );
    
  3. or download this
    my $foo = new HeckIfIKnow(
      -opt1 => '3456',
      -opt2 => '1234'
    );
    
  4. or download this
    $VAR1 = bless( {
                     '3456' => '-opt2',
                     '1234' => undef
                   }, '-opt1' );
    
  5. or download this
    $VAR1 = bless( {
                     '-opt2' => '1234',
                     '-opt1' => '3456'
                   }, 'HeckIfIKnow' );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (1)
As of 2024-04-19 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found