#! /usr/bin/perl use Cwd 'abs_path'; use File::Basename; $dir=dirname(abs_path($0)); $command=$dir . "/elfdeps"; $dlinfo=$dir . "/dlinfo"; $arglist = ""; sub usage { my $message = <))) { $line =~ /([^\(]+)(.*)/; $libs{$1}{$2} = 1; } foreach $lib ( keys %libs ) { $full=`$dlinfo $lib`; if (!$full) { delete $libs{$lib}; } } foreach $lib ( keys %libs ) { foreach $key ( keys %{ $libs{$lib} } ) { print "$lib$key\n"; } }