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;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.