I found a way to detect if Storable.pm exists, at runtime.  Pulled this 
from the xml-simple-pm package, it was in one of the test scripts.

# Usage in test script

eval { require Storable; };
unless($INC{'Storable.pm'}) {
   print STDERR "no Storable.pm...";
   print "1..0\n";
   exit 0;
}


# Potential Fink usage.

eval ( require Storable; };
if ($INC{'Storable.pm'}) $somevar{'storable'} = 'True';

# or

sub Storable {
        eval ( require Storable; );
        $INC{'Storable.pm}
}

I thought that with this we could implement info file caching.

Just wanted to help,
Kyle Moffett


_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to