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?
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..