in reply to Search for a missing file..iss my script correct?
$db_date =~s/[^\d]//g;
That is usually written as:
$db_date =~ s/\D//g;
Or better as:
$db_date =~ s/\D+//g;
Or even better as:
$db_date =~ tr/0-9//cd;
foreach( glob("$search_local/$missing_file") ){ if (-e $_)
It looks like you are looking for a single file so there is no need for the glob and foreach loop, just the -e test should be enough.
goto search2;
That is ususally written as:
last;
But since you don't really need the loop that is moot.
|
|---|