#!./perl -w
BEGIN {
chdir 't' if -d 't';
}
use strict;
my $dir;
{
}
# First we must set up some autoloader files
print FOO <<'EOT';
1;
1;
1;
# This is just to keep the old SVR3 systems happy; they may fail
# to find the above file so we duplicate it where they should find it.
# Let's define the package
require AutoLoader;
sub foo;
sub bar;
sub bazmarkhianish;
eval {
};
# Used to be trouble with this
eval {
my $foo = new Foo;
die "oops";
};
# Pass regular expression variable to autoloaded function. This used
# to go wrong because AutoLoader used regular expressions to generate
# autoloaded filename.
# Used to retry long subnames with shorter filenames on any old
# exception, including compilation error. Now AutoLoader only
eval {
};
# test recursive autoloads
print F <<'EOT';
1;
print F <<'EOT';
1;
'unimport() should remove imported AUTOLOAD()' );
# cleanup
END {
}