Help for this page

Select Code to Download


  1. or download this
    use URI::Escape; # escape funky chars out of URLs
    
  2. or download this
    ...
        else                            { $url = $perlmonksURL      . $nod
    +e; }
        if ($^O =~ /MSWin32/i) {
    ...
    
  3. or download this
        # escape URL to keep netscape and/or the shell from choking
        # " " is also unsafe (causes "Doc contains no data"
        $url=~s/+/%2B/g; # real "+" is preserved
        $url=~s/\s/+/g; # get rid of whitespace, not just " "
        $url=uri_escape($url,"\',");
    
  4. or download this
    ...
        eval '
    ...
                $url =~ s/\s/+/g;
            if ($pid == 0) {
    ...
    
  5. or download this
        $url=uri_escape($url," \',+");