}
elsif (!defined($file) || length($file) == 0) {
return;
}
# legacy (this used to be the way to do it)
if (ref($file) eq "ARRAY") {
my $f = shift @$file;
my $fn = shift @$file;
push(@headers, @$file);
$file = $f;
$filename = $fn unless defined $filename;
}
return ($name => [$file, $filename, @headers]);
}
package HTML::Form::KeygenInput;
@HTML::Form::KeygenInput::ISA=qw(HTML::Form::Input);
sub challenge {
my $self = shift;
return $self->{challenge};
}
sub keytype {
my $self = shift;
return lc($self->{keytype} || 'rsa');
}
1;
__END__
=back
=head1 SEE ALSO
L<LWP>, L<LWP::UserAgent>, L<HTML::Parser>
=head1 COPYRIGHT
Copyright 1998-2008 Gisle Aas.
This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=cut
=15=
THE END |