Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Text switchingby Bod (Parson) |
on Sep 13, 2022 at 15:25 UTC ( [id://11146859]=note: print w/replies, xml ) | Need Help?? |
If you've got a list of valid apt numbers probably the most efficient thing to do would be create a hash and use that to validate The danger here is when a valid apartment number (either now or in the future) is also a valid year. The OP appears to have listed 2022 as being an apartment number - and that's certainly a valid year...
In Section
Seekers of Perl Wisdom
|
|