in reply to Re: version compatability
in thread version compatability

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;

Replies are listed 'Best First'.
Re^3: version compatability
by davidrw (Prior) on May 06, 2005 at 00:41 UTC
    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.