William McKee wrote:

I've come across what I think is a syntax error in the documentation of
Apache::TestRequest which I'd like to get a second opinion on. Here's
how the POD says to use the function:

 my $res = UPLOAD $uri, [EMAIL PROTECTED], filename => $filename;
$pass = [EMAIL PROTECTED] from above

sub UPLOAD {
   my($url, $pass, $keep) = prepare(@_);

sub prepare {
   my $url = shift;

   ........

   ### [EMAIL PROTECTED] = [$pass, $keep] because of the shift
   my($pass, $keep) = Apache::TestConfig::filter_args([EMAIL PROTECTED], 
\%wanted_args);


sub filter_args {
   my($args, $wanted_args) = @_;   ### $args = $pass or your [EMAIL PROTECTED]

   my @filter = @$args;

## this might be killing you... whats a Data::Dumper::Dumper [EMAIL PROTECTED] of your input args above if (ref($filter[0])) { push @pass, shift @filter;
   }

hth


--

END ---------------------------------------------------------
   What doesn't kill us, can only make us stronger.
              Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
    http://www.liquidityservicesinc.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to