Working out Perl dependencies