- or download this
$choice = lc $choice;
# ... later ...
if ($choice eq 'l')
- or download this
my $filename = 'birthday.db';
...
open IN, $filename || die "Cannot read '$filename': $!\n";
print <IN>;
close IN;
- or download this
use constant CHOICE_LIST => 'l';
my $db_file = 'birthday.db';
...
print <IN>;
close IN;
}
- or download this
if ($choice eq CHOICE_MODIFY)
{
...
print OUT "$_:$birthdays{$_}\n" for keys %birthdays;
close OUT;
}