another sub which is working fine has the following:
foreach $ext (@ext) { # private files
if ($size = -e "$ext") {
if ($size = -z "$ext") {it finds $db_file_name and reports the size. this sub is using the cfg file, so it knows the value of $db_file_name. the sub that isn't working isn't using the cfg file, but is reading it to find the value. there are lots of cfg files. the working sub is only concerned with one cfg, while the non-working one is reporting values from all the cfg files. hope this makes sense.
Code:
my @ext = ("$db_file_name", "$db_id_file_name", "$auth_log_file", "$auth_pw_file"); foreach $ext (@ext) { # private files
if ($size = -e "$ext") {
if ($size = -z "$ext") {