5 use vars
qw($VERSION @ISA @EXPORT);
8 @EXPORT=qw(&get_option);
16 if(defined($Cache::{$var})){
17 $response=$Cache::{$var};
24 foreach $path (@INC) {
25 $filename="$path/$file.pm";
26 last if (-e
$filename);
28 print STDERR
"Enter $request\n";
31 open(CACHE
,"<$filename") or die "Cannot open cache for reading";
36 $cache =~ s/^(\@EXPORT\s*=\s*qw\(\s*[^\)]*)\)\s*;/$1 $var\)\;/msg;
37 $cache =~ s/^1;[\n\s]*\Z/\$$var=\"$response\"\;\n1\;\n/msg;
38 open(CACHE
,">$filename") or die "Cannot open cache for writing";