Help for this page

Select Code to Download


  1. or download this
    sub longest_words {
        my @W = sort { length($b) <=> length($a) } $_[0] =~ /\b(\w+)\b/g;
        grep length == length($W[0]), @W;
    }
    
  2. or download this
    sub longest_words {
    my@W=sort{length($b)<=>length($a)}$_[0]=~/(\w+)/g;grep length==length(
    +$W[0]),@W
    }