hollandjustin has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mod_perl strict problem
by Errto (Vicar) on Apr 07, 2007 at 17:48 UTC | |
by hollandjustin (Initiate) on Apr 07, 2007 at 19:04 UTC | |
by perrin (Chancellor) on Apr 07, 2007 at 19:31 UTC | |
by hollandjustin (Initiate) on Apr 07, 2007 at 21:52 UTC |