use strict; use warnings; print("Enter the number of flags which needs to be generated..\n"); my $num=;