my $cfg; unless ($cfg = new Config::Simple($config_file)) { print "CRITICAL: $config_file is not a valid INI file!\n"; } #### my $cfg = new Config::Simple($config_file) or print "CRITICAL: $config_file is not a valid INI file!\n";