print("error message\n"), next if /^>>/; # or (print "error message\n"), next if /^>>/;