in reply to -e not working Perl 5.008008

If you want unicode filenames you need Win32::Unicode api

Replies are listed 'Best First'.
Re^2: -e not working Perl 5.008008
by GLJSD (Initiate) on Mar 01, 2015 at 20:47 UTC

    The Perl script works fine when I am running it on my home computer running Win7 and Apache for Perl. I enter http://localhost/cgi-bin/spanish.pl for the URL in my browser and it works.

    The problem occurs however, when I upload the Perl script to a web server (hosted by the company SiteGround). I enter http://www.1604.ca/cgi-bin/spanish.pl for the URL. Could it be that their operating system is missing something? I can't imagine they're running Windows.

        FIXED!! Or at least I'm on the right track! Thanks.

        I read a bit about unicode.

        I then got my Perl script to read the directory listing and it listed "número.png" instead of the expected "número.png".

        The script did however properly read the word "número" from my data file.

        I got my program to encode the word "número" which it read from the data file. This converted it to "número". I then verified (-e "número.png") and it found it.

        Thanks again