From: Josh C. <jc...@nc...> - 2009-08-17 12:24:54
|
On Sat, 15 Aug 2009, Thomas Daniel wrote: > foo.h: > class foo { > public: > char *hello(); > }; .. > ---------------------- > test.pl: > #!/usr/bin/perl > use warnings; > use strict; > use foo; > > print foo::hello(), "\n"; > ----------------------- Your module, "foo", does not contain a function named "hello". It contains a class, which also happens to be named "foo", that has a method named "hello". Josh |