Help for this page

Select Code to Download


  1. or download this
    foreach (@pairs) {
        s/\s*(.*?)\s*/$1/;
    ...
        .
        .
    }
    
  2. or download this
    push @strings, 'nospace';
    push @strings, 'trailingspace      ';
    ...
        $wtf =~ s/\s*(.*?)\s*/$1/;
        print "After: '$wtf'\n\n";
    }
    
  3. or download this
    Before: 'nospace'
    After: 'nospace'
    ...
    
    Before: '    spaces every    where    '
    After: 'spaces every    where    '
    
  4. or download this
    # Fetch a list of cookies from the environment or the incoming headers
    + and
    # return as a hash. The cookie values are not unescaped or altered in 
    +any way.
    ...
       return \%results unless wantarray;
       return %results;
    }