|
|
| "be consistent" | |
| PerlMonks |
Re^3: Way to do a "scalar ref"?by moritz (Cardinal) |
| on Sep 26, 2011 at 09:02 UTC ( #927826=note: print w/ replies, xml ) | Need Help?? |
|
FWIW @_ and thus $_[0] are already aliases to the variable used in the call, so if you do something like
No copying happens. If you want explicit references, do it like this:
m working on a wiki (which can have VERY large articles in). The site also gets a lot of traffic (several million hits a month), so I need to make this code as optimized as possible. Then be sure to read perlperf, and cache wherever possible. If you cache the rendered version of very large articles, the number of renderings becomes proportional to the number of writes, which is usually much lower than the number or reads.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||