bubka20 has asked for the wisdom of the Perl Monks concerning the following question:

I uploaded a test perl script on godaddy's server, pathname and permissions are ok but script still didn't work. I received a message from tech saying ....script must be placed in /cgi**print to work. The ** represent two small boxes that I can not type w/ my keyboard. What is the print, and what kind of print format does it represent....? btw, I was writing my scripts with Notepad... thanks

Replies are listed 'Best First'.
Re: cgi print type
by sgifford (Prior) on May 25, 2007 at 05:03 UTC
    It would surprise me a great deal if you had to put the script into a directory with unprintable characters. Maybe the tech made a typo in the email, and asking them for clarification isn't a bad idea.

    Usually CGI scripts go into a directory called cgi-bin or cgi-perl. Try logging into your Web hosting server and seeing if one of those two directories exist.

Re: cgi print type
by blazar (Canon) on May 25, 2007 at 09:36 UTC
    I received a message from tech saying ....script must be placed in /cgi**print to work. The ** represent two small boxes that I can not type w/ my keyboard.

    Nope, that's hardly believable. Perhaps the mail was screwed up. All in all one may think of it as a bad case of "security through obscurity" (which is not security). But no, I can't believe that.

    btw, I was writing my scripts with Notepad... thanks

    That shouldn't make a difference, unless you hit the "this app may break" bug. But then there's one other thing that may be relevant: line endings. For perl it doesn't make a difference. But you may have problems with the shebang line if the webserver is running under *NIX. Oh, and of course I wouldn't regard it as a particularly friendly editor. But if you're happy with it, then just go ahead and I won't certainly start any flame.