Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Optimizing variable passing (code, peer review)

by deprecated (Priest)
on May 11, 2001 at 06:09 UTC ( #79629=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub simple_properties {
      my %properties = %{ shift() };
    ...
    }
    EOR
    }
    
  2. or download this
    sub directional_light {
      my ($amb_intensity, $color_r, $direction_r, $intensity, $on) = (@_);
    ...
    }
    EOR
    }
    
  3. or download this
    my (@array, @other_array) = (@{$_[0]}, @{$_[1]});
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2019-05-23 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (142 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!