in reply to version compatability

Can you provide more details of "acting weird" (and specific snippets if applicable)?

What versions of CGI are on your server and your friend's server (I would guess they're different)? If different, check the CGI.pm changelog to see if anything in there matches up with your symptoms.

Replies are listed 'Best First'.
Re^2: version compatability
by dani681 (Initiate) on May 06, 2005 at 00:29 UTC
    I don't know what version of CGI is installed, but it's probably as old as the hills. But the only thing I'm using from that is the param() function, and that appears to be working. One example of the "weirdness" is my regular expressions. For example, the following line works perfectly on my server but doesn't work at all on my friend's: $strFile =~ s/ //g;
      Have you verified that the value of $strFile is exactly the same in both scripts when that line is executed? What is an example value? If it's not the same, how is $strFile set?

      Does the script have 'use warnings;' and 'use strict;'? If not, anything new when you add them?
      Update: ysth points out that 'use warnings' is a perl >= 5.6.0 thing. Hopefully 'use strict' will still help the OP to help us help him..
        On 5.004, it had better not have 'use warnings;', which was added in 5.6.0.
        I know that the var is the same on both servers because it is supposed to go through the regex and output to a txt file. On my server the regex has taken out the specific characters and on my friend's server it prints with the characters still in the string.