Help for this page

Select Code to Download


  1. or download this
    foreach (@data) {
      my $match = $_ if !/:/;
    }
    
  2. or download this
    foreach (@data) {
      my $match = $_ if /^[^:]*$/;
    }
    
  3. or download this
    my ($match) = grep !/:/, @data;