Right, this is the code i am now using (just gives me blank pages now, not IS Errors);
#!/usr/bin/perl
use strict;
print "Content-type: text/html\n\n";
use File::Find;
my (@mod, %done, $dir);
find (\&get_module, grep { -r and -d } @INC);
@mod = grep (!$done{$_}++, @mod);
foreach $dir (sort { length $b <=> length $a } @INC) {
foreach (@mod) { next if s,^\Q$dir,,; }
}
foreach (@mod) { s,^/(.*)\.pm$,$1,; s,/,::,g; print "$_{br}\n"; }
sub get_module {
/^.*\.pm$/ && /$ARGV[0]/i && push @mod, $File::Find::name;
}
Any ideas???
Thanks
Andy
http://www.ace-installer.com
webmaster@Ace-installer.com
#!/usr/bin/perl
use strict;
print "Content-type: text/html\n\n";
use File::Find;
my (@mod, %done, $dir);
find (\&get_module, grep { -r and -d } @INC);
@mod = grep (!$done{$_}++, @mod);
foreach $dir (sort { length $b <=> length $a } @INC) {
foreach (@mod) { next if s,^\Q$dir,,; }
}
foreach (@mod) { s,^/(.*)\.pm$,$1,; s,/,::,g; print "$_{br}\n"; }
sub get_module {
/^.*\.pm$/ && /$ARGV[0]/i && push @mod, $File::Find::name;
}
Any ideas???
Thanks
Andy
http://www.ace-installer.com
webmaster@Ace-installer.com