perlescent
Technical User
I am sorting through a list of filenames within a dir.
Opening the filenames I can read the bookingReference in a hash.
if ($accommodations{$Keyword}) {
$booked = 1;
last;
} # end if
if ($booked) {
&booked;
} else {
&vacancies;
}
The difficulty is that both instances will be true, most often. I need to & booked if no vacancies and &vacancies if there is even just one vacancy. But how do I evaluate the hash. is that even the correct term?
perlescent.
Opening the filenames I can read the bookingReference in a hash.
if ($accommodations{$Keyword}) {
$booked = 1;
last;
} # end if
if ($booked) {
&booked;
} else {
&vacancies;
}
The difficulty is that both instances will be true, most often. I need to & booked if no vacancies and &vacancies if there is even just one vacancy. But how do I evaluate the hash. is that even the correct term?
perlescent.