use strict; foo(); #### use strict; use FOO; #assuming it exists my $foo = Foo->new(); $foo->some_non_existing_function();