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.. | [reply] |
On 5.004, it had better not have 'use warnings;',
which was added in 5.6.0.
| [reply] |
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.
| [reply] |