NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Solutions (Score:1)
Obviously you want this:
However, that will make a copy of the value before taking a reference, eating up memory. What we would really like here is to attach the data to another container without copying it and then store a reference to that container in the current one. Well, with Data::Alias from the CPAN, we can:
Re:Solutions (Score:1)
$image_ref- because the sub was reasonably short and thus the name change was manageable. Thanks for the tip anyway!Reply to This
Parent