Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Optimizing variable passing (code, peer review)

by Masem (Monsignor)
on May 11, 2001 at 07:15 UTC ( #79635=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %property_hash = (
      emmisive => 'emmisiveColor',
    ...
      }
    }
    EOR
    
  2. or download this
      $prop_string .= $key . ' ' . 
        ( @{$properties{ $key }} || @{$prop_def{ $key }} ) . "\n"
    
  3. or download this
    sub code {
       my %hash = %{ shift() };
       my $value = $hash{ 'expected' } || $const_def_hash{ 'expected' };
    }
    
  4. or download this
    sub code {  # scalar, array ref, hash ref
       my $data = shift;
       my @array = @{ shift() };
       my %hash = %{ shift() };
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-09-22 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (184 votes), past polls