++ed by:
SZABGAB DOHERTY AYOUNG OALDERS KENTNL

20 PAUSE users
4 non-PAUSE users.

Sawyer X

NAME

MetaCPAN::API::Autocomplete - Autocompletion info for MetaCPAN::API

VERSION

version 0.50

DESCRIPTION

This role provides MetaCPAN::API with fetching autocomplete information

METHODS

autocomplete

    my $result = $mcpan->autocomplete( 
        search => {
            query => 'Moose',
        },
    );

By default, you get 20 results (at maximum). If you need more, you can also pass size:

    my $result = $mcpan->autocomplete( 
        search => {
            query => 'Moose',
            size  => 30,
        },
    );

There is a hardcoded limit of 100 results (hardcoded in MetaCPAN).

Searches MetaCPAN for autocompletion info.

AUTHOR

Sawyer X <xsawyerx@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Sawyer X.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.