1
2
3
my $Anfrage_Parameter = HTTP::Request::Params -> new( { req => $Anfrage_POST, } );
my $params = $Anfrage_Parameter-> params;
https://metacpan.org/pod/release/CWEST/HTTP-Request-Params-1.01/lib/HTTP/Request/Params.pm#paramsmy $params = $parser->params;
Returns a hash reference containing all the parameters. The keys in this hash are the names of the parameters. Values are the values associated with those parameters in the incoming query. For parameters with multiple values, the value in this hash will be a list reference. This is the same behaviour as the CGI module's Vars() function.
1 2 3 4 5 6 7 8 9 10 11 12 13
my $params = $Anfrage_Parameter-> params; # $params ist eine Hashreferenz my %parameter = %{$params}; # %parameter ist der Hash for my $key (keys %parameter) { # zu jeden einzelnen Schlüssel my @values; if (ref $parameter{$key} ) { # falls mehrere Werte, dann ist es eine Arrayreferenz @values = @{$parameter{$key}}; # Werte aus Referenz holen } else { # einzelner Wert @values = $parameter{$key}; } say $key, "=> ", join ", ",@values; # die Werte ausgeben }
my ( $Monitoring_Inhalte_POST ) = &Monitoring_Server_POST( $Monitoring_Exporte_Parameter_GUI_I )
1
2
3
4
if( $Monitoring_Inhalte_POST =~ /Oberflaeche_I/ ) # Suche des Parameters "Oberflaeche_I" in Inhalte des POSTs
{
# Do Something
}
return( "$Monitoring_Inhalte_POST" , "$Monitoring_Parameter_Werte );