Help for this page

Select Code to Download


  1. or download this
    my $req = POST $url, Content_Type => 'form-data',
                Content        => [
    ...
                        filetype   => $filetype,
                        file       => [ $fname ]
                    ];
    
  2. or download this
    ####################
    #  Load Settings  #
    ...
    user = Andy 
    zipped = 1 # 0 Not Zipped, 1 Zipped, 2 Gzipped- do not use -1
    filetype = 1 # 1 = Measurements, 2 = Outage, 3 = Rotation
    
  3. or download this
        while (<CONFIG>) {
            chomp;                  # no newline
    ...
            my ($var, $value) = split(/\s*=\s*/, $_, 2);
                 $preferences{$var} = $value;
        }