Gossamer Forum
Home : General : Perl Programming :

Re: [Andy] test for file exist not working

Quote Reply
Re: [Andy] test for file exist not working In reply to
i don't think so. i think i've set $db_file = $db_file_name:
Code:
if (/\$db_file_name/) {
$_=~s/\$db_file_name//g;
$_=~s/[=';]//g;
$_=~s/\#.*$//g;
$db_file = $_;
$db_file =~ s/\$db_data_path/$db_data_path/g;
$db_file =~ s/\$db_script_path/$db_script_path/g;
$db_file_name is the original file. i want to restore the backup version which is in $backup_dir. i think $_ has the backup_dir in the path. hmmm. maybe i see the problem! i think i may be stripping out too much of the path. will attempt to fix and post results later!
Subject Author Views Date
Thread test for file exist not working delicia 11948 May 25, 2018, 11:17 AM
Post Re: [delicia] test for file exist not working
delicia 11692 May 25, 2018, 11:20 AM
Thread Re: [delicia] test for file exist not working
Andy 11689 May 26, 2018, 12:59 AM
Thread Re: [Andy] test for file exist not working
delicia 11683 May 26, 2018, 6:12 AM
Thread Re: [delicia] test for file exist not working
delicia 11684 May 26, 2018, 6:29 AM
Thread Re: [delicia] test for file exist not working
delicia 11678 May 26, 2018, 6:53 AM
Thread Re: [delicia] test for file exist not working
Andy 11671 May 27, 2018, 1:16 AM
Thread Re: [Andy] test for file exist not working
delicia 11648 May 28, 2018, 8:36 AM
Post Re: [delicia] test for file exist not working
Andy 11631 May 28, 2018, 11:06 PM