my @files; my @plays; for (keys %filelist) { $files[@files] = $filelist{$_}; $plays[@plays] = $playlist{$_}; }
Just a small remark, you don't need a for-loop for that, I'd use values and a hash slice:
my @files = values %filelist; my @plays = @playlist{ keys %filelist };
-- Hofmator
In reply to Re: Re: two questions that come together into one grand unified question
by Hofmator
in thread sorting and comparing hashes
by ashaman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |