Click to See Complete Forum and Search --> : Perl help?
Yanhead
07-11-2003, 11:44 AM
I have a Perl script that has an array of URL's in it. When I replace a URL with one that has a "-" in it, it stops working, any ideas why this might occur? obvioulsy without posting the script I don't expect an answer about it, I just wondered if Perl itself didn't like "-" (hyphens) in arrays or something.
Failing that, where can I get a simple, free form>Mail script from?
thanks
...without seeing the script, I can only surmise that within the script the value of the link is checked with an argument that disallows the hyphen, therefore returning false
goofball
07-23-2003, 09:55 AM
check the context (string, number, etc.) of any and all statement that use the values of your array. If you are trying to evaluate the hyphenated URL as a single statement, perl may interpret the hyphen as a minus sign and try to perform a subtraction, e.g. fatal error.
All fatal errors will put something in your server's error_log, telling you what problem occured. Different errors will give a diferent degree of detail as to the problem.
If you have access to this log, your debugging will be a lot easier. Ask your host if you're not sure.
Hope this helps!