Basics: I'm using mod_perl and getting a 502 error on one file
If I don't use strict, then it passes through fine, with nothing other than my own printed errors in the log
However, if I do use strict, the script fails in the most vital place (I'm positive all the variables are instantiated and have correct values)
require "preload/$fileHandle\_build2.pl";
print &$conBuild($data,$file,$num,$ty,1);
Basically I'm dynamically setting the function name after dynamically requiring a file.
This is the error:
Can't use string ("rss_function") as a subroutine ref while "strict refs" in use at widget_load.pl line 120.
It seems that strict doesn't like dynamically setting function names, its just mod_perl doesn't seem to like to run any of my scripts unless they're strict.
Cheers!
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.