An alternative:
use Data::Heap::Whatever 1.1 ( Factory => my $Heap, ...
But the passing of a reference has two purposes:
I don't have a strong preference (other than wishing use could return a factory), though.
- tye
In reply to Re^3: Getting rid of "new" (superfluous reference constructor)--
by tye
in thread Getting rid of "new"
by xdg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |