in reply to A Class inside a Perl script?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: A Class inside a Perl script?
by harsha.reddy (Acolyte) on Jun 02, 2009 at 09:10 UTC | |
by Corion (Patriarch) on Jun 02, 2009 at 09:15 UTC | |
by Bloodnok (Vicar) on Jun 02, 2009 at 13:21 UTC | |
by kreetrapper (Scribe) on Jun 03, 2009 at 09:06 UTC | |
by LanX (Saint) on Jun 03, 2009 at 10:11 UTC | |
by vinoth.ree (Monsignor) on Jun 02, 2009 at 09:16 UTC | |
by targetsmart (Curate) on Jun 02, 2009 at 09:29 UTC |