i don't think so. i think i've set $db_file = $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!
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;