Help for this page

Select Code to Download


  1. or download this
    sub substrings {
      my $string = shift;
    ...
    
      return @result;
    }
    
  2. or download this
    sub substrings {
      local $_ = shift;
    ...
      do { push @result, /(?=(.+)$)/sg; chop } while (length);
      return @result;
    }