Gossamer Forum
Home : General : Perl Programming :

syntax error - file upload mod works fine on one server but not on another

Quote Reply
syntax error - file upload mod works fine on one server but not on another
Hello,

I am using the file upload mod by Paul. The add.cgi after modifications works fine on one host and I have been using it for a while.

However, I recently moved this to another host and it is giving me an error. I tried to run it in telnet and see what the error is and I got a syntax error for the following line:

unlink "$upload_path/$_" foreach @uploads;

The above line is getting a syntax error.

When I comment it, the script does not give an error. Do you know why? Do you have an alternative or a fix?

Thanks in advance.
Quote Reply
Re: [socrates] syntax error - file upload mod works fine on one server but not on another In reply to
Hmm.. no one knows about this?

thanks