sub UNIVERSAL::AUTOLOAD { print STDERR "[[@_]]"; } package main; Jouke::Foo->whatever_method(); #### D:\TESTS\tperl>perl -w autocr.pl [[Jouke::Foo]]