for (@MyData){ next if ! defined; ... } #### for (@MyData){ last if ! defined; ... }