in reply to Using AutoLoader Without AutoSplit?

I want to know if anyone has used AutoLoader without AutoSplit.

Would something like the following (untested idea) work for you?

sub AUTOLOAD { my $func = $AUTOLOAD; die "Can't locate $func" if ! -f "$func.pl"; eval "require $func.pl"; die $@ if $@; goto &$func; }
Update: typo correction

Replies are listed 'Best First'.
Re: Re: Useing AutoLoader Without AutoSplit?
by Whalen (Initiate) on Mar 27, 2002 at 16:35 UTC
    That looks like the idea. I think it will work. I just want to make sure they are required into the right namespace. I have a large application with about 60 subrutines split between 5 custom perl mods. We have 10 differnt people working on them at any one time and back migrating is becoming a problem. This should help keep things moving. I'll give it a shot. Thanks.