Link to home
Start Free TrialLog in
Avatar of mwhuen
mwhuen

asked on

reference

when should i pass by reference?
($r, @d) = DBQuery(\%dbinfo, $sql);

what is the advantage of it?
Avatar of geotiger
geotiger

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
Avatar of maneshr
maneshr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ozo
perldoc perlref
did you get the answer you were looking for?

let us know.
Avatar of mwhuen

ASKER

Comment accepted as answer