my $foundstring = get_foundtime_from_garmin($gcid); print " DEBUG add_new_cache 4: return value from get_foundtime_from_garmin: $foundstring\n\n\n"; if ($foundstring eq "n/a") { # need to read the time from the note.txt file my $notetxtfile = $gcdir . "/found/" . $currentdir . "/note.txt"; $foundstring = read_date_from_notetxt($notetxtfile); }