SergioQ has asked for the wisdom of the Perl Monks concerning the following question:
I want to start to move some of my functions over to a separate module. So I created the simplest of ones, just to build up from there. However no how hard I try, my already working Perl module "upload.pl" fails if I add "use Ssbase;" to it. And of course it works if I remove that line.
I have tried everything in that, they're all in the same directory, I've set the permissions to Ssbase to 777, the user and group to www-data, etc.
I've even tried taking everything out of the package other than the name line, and the 1; line.
I'm so befuddled and angry that I can't do anything else!
package Ssbase; require Exporter; use strict; use CGI; no warnings 'uninitialized'; our @ISA = qw(Exporter); our @EXPORT = qw(justReturn); sub justReturn { return 0; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why is my PM package failing?
by Marshall (Canon) on Feb 17, 2022 at 02:51 UTC | |
by choroba (Cardinal) on Feb 17, 2022 at 09:56 UTC | |
by SergioQ (Scribe) on Feb 17, 2022 at 03:16 UTC | |
by LanX (Saint) on Feb 17, 2022 at 11:17 UTC | |
by Marshall (Canon) on Feb 17, 2022 at 03:20 UTC | |
by SergioQ (Scribe) on Feb 17, 2022 at 03:37 UTC | |
by NERDVANA (Priest) on Feb 18, 2022 at 06:16 UTC | |
| |
by marto (Cardinal) on Feb 18, 2022 at 08:44 UTC |