Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 lurking in the Monastery: (12)
As of 2014-07-14 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls