bugsbunny has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl package XX::Blah; ... code... 1; package main; use XX::Blah; my $x = new XX::Blah(); $x->method();It seems that it can't find XX::Blah 'cause it is is not in some of the @INC directories but within the script itself...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: package inside .pl
by jreades (Friar) on Dec 02, 2002 at 12:54 UTC | |
|
Re: package inside .pl
by BrowserUk (Patriarch) on Dec 02, 2002 at 12:56 UTC | |
|
Re: package inside .pl
by broquaint (Abbot) on Dec 02, 2002 at 13:58 UTC | |
|
Re: package inside .pl
by rdfield (Priest) on Dec 02, 2002 at 12:51 UTC | |
|
Re: package inside .pl
by bugsbunny (Scribe) on Dec 02, 2002 at 13:02 UTC |