in reply to Consecutive if loops
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
poj
|
|---|