Gossamer Forum
Home : General : Perl Programming :

Re: [delicia] test for file exist not working

Quote Reply
Re: [delicia] test for file exist not working In reply to
another sub which is working fine has the following:
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") {
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.
Subject Author Views Date
Thread test for file exist not working delicia 11798 May 25, 2018, 11:17 AM
Post Re: [delicia] test for file exist not working
delicia 11547 May 25, 2018, 11:20 AM
Thread Re: [delicia] test for file exist not working
Andy 11544 May 26, 2018, 12:59 AM
Thread Re: [Andy] test for file exist not working
delicia 11537 May 26, 2018, 6:12 AM
Thread Re: [delicia] test for file exist not working
delicia 11539 May 26, 2018, 6:29 AM
Thread Re: [delicia] test for file exist not working
delicia 11533 May 26, 2018, 6:53 AM
Thread Re: [delicia] test for file exist not working
Andy 11525 May 27, 2018, 1:16 AM
Thread Re: [Andy] test for file exist not working
delicia 11503 May 28, 2018, 8:36 AM
Post Re: [delicia] test for file exist not working
Andy 11486 May 28, 2018, 11:06 PM