Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Queue::Q4M 0.00019

    Download button

    No screenshots available
    Downloads: 164  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Daisuke Maki | More programs
    Perl Artistic License / FREE
    May 31st, 2010, 19:28 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Queue::Q4M description

    Simple Interface To q4m

    Queue::Q4M is a simple Perl wrapper to q4m, which is an implementation of a queue using mysql.

    SYNOPSIS

     use Queue::Q4M;

     my $q = Queue::Q4M- >connect(
     connect_info = > [
     'dbi:mysql:dbname=mydb',
     $username,
     $password
     ],
     );

     for (1..10) {
     $q- >insert($table, \%fieldvals);
     }

     while ($q- >next($table)) {
     my ($col1, $col2, $col3) = $q- >fetch($table, \@fields);
     print "col1 = $col1, col2 = $col2, col3 = $col3\n";
     }

     while ($q- >next($table)) {
     my $cols = $q- >fetch_arrayref($table, \@fields);
     print "col1 = $cols- >[0], col2 = $cols- >[1], col3 = $cols- >[2]\n";
     }

     while ($q- >next($table)) {
     my $cols = $q- >fetch_hashref($table, \@fields);
     print "col1 = $cols- >{col1}, col2 = $cols- >{col2}, col3 = $cols- >{col3}\n";
     }

     # to use queue_wait(table_cond1,table_cond2,timeout)
     while (my $which = $q- >next(@table_conds)) {
     # $which contains the table name
     }

     $q- >disconnect;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    q4m wrapper | Perl interface | Perl module | Perl | q4m | wrapper



    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