You haven't assigned anything to %seen.
Maybe add
$seen{$file} = $version;
before the print statement. Or even
push @{ $seen{$file} }, $version; print "@{$seen{$file}} \n";
as the $file part (hash key) seems to be the same in all cases (at least for the sample data). The latter would create an array for a hash entry/key "/view/d602_edf3/" with the array holding all values of $version...
Maybe you could elaborate on what exactly you're trying to achieve.
In reply to Re: Split and hash
by almut
in thread Split and hash
by ksam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |