I'm guessing the problem is when you enter yyyy the code runs in both the yyyy and the yyyy.mm blocks. Either add start ^ and end $ anchors to the regex statements
if ($start_input =~ /^\d\d\d\d$/ && $end_input =~ /^\d\d\d\d$/){
or swap the order so the if yyyy.mm is first then elseif yyyy
pojIn reply to Re: Consecutive if loops
by poj
in thread Consecutive if loops
by M15U
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |