Help for this page

Select Code to Download


  1. or download this
    
        my($sym) = gensym;
    ...
    
        (open($sym, $cmd) or die "Cannot open pipe from `$cmd': $!")
          and bless $sym => $class;
    
  2. or download this
    my $content =
        ($resp->content_encoding || '') 
    ...
              : $resp->content;
      $resp->content_type =~ m!^multipart/!
        ? join("\n", $resp->headers_as_string, $content) : $content;