views:

77

answers:

1

Specifically I'm trying to capture all the POST parameters from a payment gateway as a single string and then parse them looking for the string 'ERROR'. I'm aware there's a $c->request->parameters method but I'm not quite sure how its used and couldn't figure it out from the CPAN documentation. Thanks in advance!

+1  A: 

It returns a hash reference with the necessary data

my $hashref = $c->request->parameters;

A form with:

<input type="text" name="username" value="joe" />

Would result in a hashref like:

my $hashref = {
    username => "joe", 
};
Glen