Help for this page

Select Code to Download


  1. or download this
    my @list = (1, 2, 3, 4, 5);
    my @result = grep $_ > 2, @list;
    print "@result";
    
  2. or download this
    3 4 5
    
  3. or download this
    if (exists $item_lookup{$name}){
      print qq{$name has $item_lookup{$name}};
    else{
      print qq{$name is missing $item_lookup{$name};
    }