(this is not a dual-life module)
#!./perl
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = qw(../lib);
+ }
+}
+
use FileCache;
use vars qw(@files);
BEGIN {
#!./perl
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = qw(../lib);
+ }
+}
+
use FileCache maxopen=>2;
use Test;
use vars qw(@files);
#!./perl
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = qw(../lib);
+ }
+}
+
use FileCache maxopen=>2;
use vars qw(@files);
BEGIN {
#!./perl
-BEGIN {
- use FileCache;
- chdir 't' if -d 't';
- #For tests within the perl distribution
- @INC = '../lib' if -d '../lib';
- END;
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = qw(../lib);
+ }
}
+
+use FileCache;
+
END{
unlink('foo');
}
#!./perl
-BEGIN {
- use FileCache;
- chdir 't' if -d 't';
- #For tests within the perl distribution
- @INC = '../lib' if -d '../lib';
- END;
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = qw(../lib);
+ }
}
+
+use FileCache;
+
END{
unlink("Foo_Bar");
}
#!./perl
-BEGIN {
- chdir 't' if -d 't';
- #For tests within the perl distribution
- @INC = '../lib' if -d '../lib';
- END;
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = qw(../lib);
+ }
+}
+BEGIN {
# Functions exported by FileCache;
@funcs = qw[cacheout cacheout_close];
$i = 0;
#!./perl -w
BEGIN {
- chdir 't';
- @INC = '../lib';
+ if( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = qw(../lib);
+ }
}
require './test.pl';