http://qs321.pair.com?node_id=1175922


in reply to push to array without copying

There is one rather ugly trick for getting a reference to an array containing aliases:

my %hash = ( a => 1, b => 2, c => 3, d => 4 ); my $av = sub { \@_ }->( @hash{'d','b','c','a'} ); print "@$av\n";

But I'd likely go with BrowserUk's suggestion instead.

- tye