Or, as of Perl v5.22, the experimental "refaliasing" feature can be used, allowing one to access %info as if it were a regular hash, without having to make a copy of it:
use experimental 'refaliasing'; \my %info = get_mp3info($file); for my $key (keys %info) { print "$key / $info{$key}\n"; }
In reply to Re^2: Reference found where even-sized list expected
by haukex
in thread Reference found where even-sized list expected
by sciguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |