Help for this page

Select Code to Download


  1. or download this
    use Data::Dump;
    
    ...
            return URI->new("https://h.wrttn.me/post");
        }
    }
    
  2. or download this
    my $mtgox = Local::Finance::MtGox->new({ key => 'key', secret => 'secr
    +et' });
    $mtgox->{mech}->ssl_opts(verify_hostname => 0);
    dd $mtgox->call_auth('getFunds');
    
  3. or download this
    use AnyEvent;
    use AnyEvent::Util 'fork_call';
    ...
    my $cv = AE::cv;
    fork_call { $mtgox->call_auth('getFunds') } sub { dd @_; $cv->send };
    $cv->wait;
    
  4. or download this
    use Coro;
    use LWP::Protocol::AnyEvent::http;
    ...
        $mtgox->call_auth('getFunds');
    };
    dd $coro->join;
    
  5. or download this
    use AnyEvent;
    use AnyEvent::HTTP::Request;
    ...
    $req->send;
    
    $cv->wait;