in reply to Re^3: Perl network programming
in thread Perl network programming

$cfile = $ENV{'OCONFFILE'};
open( CFILE, $cfile ) || return "FAIL0:No such file: $cfile!\n";

The code given above is the actual part tht gets the config file path & opens the file for read.

As u said the code is huge for me to post it. Anyway i got around the issue, it was with setting the global variable OCONFFILE to correct path.

jbert, thanks once again