Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>

WEEK'S BEST

  • BackTrack 5 R1
  • Wine 1.2.3 / 1.4 RC3
  • Mozilla Firefox 10...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.3 LTS
  • Linux Kernel 3.2.6
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.1
  • Home > Linux > Programming > Perl Modules

    POE::Component::SmokeBox::Dists 1.02

    Download button

    No screenshots available
    Downloads: 93  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Williams | More programs
    Perl Artistic License / FREE
    September 2nd, 2010, 21:55 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    POE::Component::SmokeBox::Dists description

    Search for CPAN distributions by cpanid or distribution name

    POE::Component::SmokeBox::Dists is a POE component and Perl module that provides non-blocking CPAN distribution searches. It is a wrapper around File::Fetch for 02packages.details.txt.gz file retrieval, IO::Zlib for extraction and CPAN::DistnameInfo for parsing the packages data.

    Given either author ( ie. CPAN ID ) or distribution search criteria, expressed as a regular expression, it will return to a requesting session all the CPAN distributions that match that pattern.

    The component will retrieve the 02packages.details.txt.gz file to the .smokebox directory. If that file already exists, a newer version will only be retrieved if the file is older than 6 hours. Specifying the force parameter overrides this behaviour.

    The 02packages.details.txt.gz is extracted and a CPAN::DistnameInfo object built in order to run the search criteria. This process can take a little bit of time.

    SYNOPSIS

     use strict;
     use warnings;
     
     use POE;
     use POE::Component::SmokeBox::Dists;
     
     my $search = '^BINGOS$';
     
     POE::Session->create(
     package_states => [
     'main' => [qw(_start _results)],
     ],
     );
     
     $poe_kernel->run();
     exit 0;
     
     sub _start {
     POE::Component::SmokeBox::Dists->author(
     event => '_results',
     search => $search,
     );
     return;
     }
     
     sub _results {
     my $ref = $_[ARG0];
     
     return if $ref->{error}; # Oh dear there was an error
     
     print $_, "\n" for @{ $ref->{dists} };
     
     return;
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    CPAN distribution search | POE component | Perl module | CPAN | distribution | search



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM