May 29, 2001, 11:39 PM
Post #4 of 4
That's not what I would call a precise question (if any), but let's give it another try. You've written a file manager in Perl. You can use the file manager for uploads. If you upload a CGI script, it won't run. The file manager is actually also a CGI script running on your server and you use a browser to select a file and upload it. (Let's see what else comes to my mind... hey, let me guess what you got for lunch...)
If the above should be correct, and you are running Windows, but your server is running some flavor of Unix, the problem is obviously the CR/LF sequence at the end of each line in the CGI script. You can handle this e.g. by using a search and replace pattern on the whole file before saving it:
Obviously, you should make this optional in your file manager, because only text files need this conversion.