if (/^\?/) { next; } elsif (/^\!/) { rest of the code ; }