Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
LanX fish hawk hunting
[erix]: I think they use Cormorants for that in Asia, by putting a ring around their necks to prevent them from swallowing. Plenty of cormorants here too (=Kormoran)
[erix]: (I've seen gruops of up to a thousand cormorants overhead)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-10-20 10:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (261 votes). Check out past polls.

    Notices?