Returning a hashref is a lot more efficient than a hash, because of all the flattening Perl does to the hash when passing one back from a subroutine. In a CGI program, a method like param() could be used a lot, so it's important to optimize it.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
:(){ :|:&};:
Note: All code is untested, unless otherwise stated
In reply to Re: Re: dereferencing syntax question
by hardburn
in thread dereferencing syntax question
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |