Help for this page
# test.pl use strict; ... # but can't call the following, as expected my $f = new Foo(); $f->foo();
" => *main::" CORE:: => *main::CORE:: ... Can't locate object method "new" via package "Foo" (perhaps you forgot + to load " Foo"?) at test.pl line 30.