mwhuen
asked on
reference
when should i pass by reference?
($r, @d) = DBQuery(\%dbinfo, $sql);
what is the advantage of it?
($r, @d) = DBQuery(\%dbinfo, $sql);
what is the advantage of it?
Passing a reference is just passing a point, not the whole array or object. It is quicker, cheaper (using less memory), and safer (you do not need to keep two or more copies of the same data).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
perldoc perlref
did you get the answer you were looking for?
let us know.
let us know.
ASKER
Comment accepted as answer