Acme-Constructor-Pythonic

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME
    Acme::Constructor::Pythonic - import Python-style constructor functions

SYNOPSIS
        use Acme::Constructor::Pythonic qw(
            LWP::UserAgent
            JSON
            HTTP::Request
        );
    
        my $json = JSON();
        my $ua   = UserAgent();
        my $req  = Request( GET => 'http://www.example.com/foo.json' );
    
        my $data = $json->decode( $ua->request($req)->content )

DESCRIPTION
    In Python you import classes like this:

lib/Acme/Constructor/Pythonic.pm  view on Meta::CPAN


=head1 NAME

Acme::Constructor::Pythonic - import Python-style constructor functions

=head1 SYNOPSIS

    use Acme::Constructor::Pythonic qw(
        LWP::UserAgent
        JSON
        HTTP::Request
    );
    
    my $json = JSON();
    my $ua   = UserAgent();
    my $req  = Request( GET => 'http://www.example.com/foo.json' );
    
    my $data = $json->decode( $ua->request($req)->content )

=head1 DESCRIPTION



( run in 0.353 second using v1.01-cache-2.11-cpan-de7293f3b23 )