Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Code from PHP to Perl

by tobyink (Canon)
on May 04, 2013 at 10:47 UTC ( [id://1032024]=note: print w/replies, xml ) Need Help??


in reply to Code from PHP to Perl

use v5.12; use HTTP::Tiny; # Some empty hashes. I'll leave populating them with # the correct data as an exercise for the reader. my %_GET = (); my %_POST = (); my $url = "http://affiliate.frankstrade.com/plugins/PayPal/paypal +.php?pap_custom=$_GET{pap_custom}"; my $response = "HTTP::Tiny"->new->post_form($url, \%_POST); if ($response->{success}) { say $response->{content}; } else { warn $response->{reason}; }
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1032024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-24 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found