The use keyword wants to load the file test.pm. But you don't need the use statement at all, your program will work, because the test package has been initialized already in your script.
You should add package main; in front of your "main program" code, to avoid the confusion of namespaces.
In reply to Re: A Class inside a Perl script?
by Corion
in thread A Class inside a Perl script?
by harsha.reddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |