Help for this page

Select Code to Download


  1. or download this
    sub report {
      trim($_) for @_;
      return sprintf "...",@_;
    }
    
  2. or download this
    sub report {
        my @strings = @_;
        trim($_) for @strings;
        return sprintf "...", @strings;
    }
    
  3. or download this
        # Doesn't work:
        my @strings = map { trimInPlace(\$_) } @_;
    ...
        sprintf "...", map { trimmed($_) } @_;
    
        sprintf "...", trimmed($_[0]), ...;