Lines Matching refs:AUTOLOAD

6 our($VERSION, $AUTOLOAD);
21 AUTOLOAD {
22 my $sub = $AUTOLOAD;
129 *{ $callpkg . '::AUTOLOAD' } = \&AUTOLOAD
130 if @_ and $_[0] =~ /^&?AUTOLOAD$/;
174 my $symname = $callpkg . '::AUTOLOAD';
175 undef *{ $symname } if \&{ $symname } == \&AUTOLOAD;
190 use AutoLoader 'AUTOLOAD'; # import the default AUTOLOAD subroutine
193 use AutoLoader; # don't import AUTOLOAD, define our own
194 sub AUTOLOAD {
196 $AutoLoader::AUTOLOAD = "...";
197 goto &AutoLoader::AUTOLOAD;
211 B<AutoLoader> implements an AUTOLOAD subroutine. When an undefined
213 B<AutoLoader>'s AUTOLOAD subroutine attempts to locate the subroutine in a
219 such a file exists, AUTOLOAD will read and evaluate it,
220 thus (presumably) defining the needed subroutine. AUTOLOAD will then
224 future calls to the subroutine will bypass the AUTOLOAD mechanism.
243 =head2 Using B<AutoLoader>'s AUTOLOAD Subroutine
245 In order to use B<AutoLoader>'s AUTOLOAD subroutine you I<must>
248 use AutoLoader 'AUTOLOAD';
250 =head2 Overriding B<AutoLoader>'s AUTOLOAD Subroutine
252 Some modules, mainly extensions, provide their own AUTOLOAD subroutines.
254 and then fallback to B<AutoLoader>'s AUTOLOAD for the rest.
256 Such modules should I<not> import B<AutoLoader>'s AUTOLOAD subroutine.
257 Instead, they should define their own AUTOLOAD subroutines along these
263 sub AUTOLOAD {
264 my $sub = $AUTOLOAD;
269 $AutoLoader::AUTOLOAD = $sub;
270 goto &AutoLoader::AUTOLOAD;
280 If any module's own AUTOLOAD subroutine has no need to fallback to the
281 AutoLoader's AUTOLOAD subroutine (because it doesn't have any AutoSplit
327 the explicit C<'AUTOLOAD'> import if needed, and removing B<AutoLoader>