I have the following files.
$var = "val";
Can't locate conf/cf.pl in @INC...
Which version of Perl are you using? There are things afoot to remove the current directory from @INC as a response to CVE-2016-1238. Try printing the value of @INC in each part of the chain to verify this.
To change this, you can deliberately add a directory to @INC.