137
138
# The POST routine can now also take a hash reference.
138
139
my %hash = (foo => 42, bar => 24);
139
140
$r = POST 'http://www.perl.org/survey.cgi', \%hash;
141
142
print "not " unless $r->content =~ /foo=42/ &&
142
143
$r->content =~ /bar=24/ &&
143
144
$r->content_type eq "application/x-www-form-urlencoded" &&