dba8ca2f5fb1617497df7ed91d27f1f8b212f389
[p5sagit/p5-mst-13.2.git] / lib / AutoLoader.pm
1 package AutoLoader;
2
3 AUTOLOAD {
4     my $name = "auto/$AUTOLOAD.al";
5     $name =~ s#::#/#g;
6     eval {require $name};
7     if ($@) {
8         ($p,$f,$l) = caller($AutoLevel);
9         $@ =~ s/ at .*\n//;
10         die "$@ at $f line $l\n";
11     }
12     goto &$AUTOLOAD;
13 }
14
15 1;