package main; myfunc(1,2,3); # I want to redirect to foo::myfunc() sub AUTOLOAD { if $caller eq "foo" foo::myfunc(@_); } # Any way to get rid of the main::autoload and somehow # handle it in the foo package ??? Or is there a way # to override AUTOLOAD in my package using BEGIN or ???