Challenge: Most List::Compare methods return a list. What if I only need that list as input to some other function?
@union = $lc->get_union;
some_other_function(@union);
Wouldn't it be faster if I just returned and passed an array reference?
Response: Parallel methods which return references
$unionref = $lc->get_union_ref;
some_other_function($unionref);
Previous | Back to start of show | Next |
Slide: 9 return_references | © 2004-18 James E. Keenan |