Help for this page

Select Code to Download


  1. or download this
    BEGIN { use_ok 'Q' };
    
  2. or download this
    my $q = new_ok Q => [5];
    
  3. or download this
    package Thing;
    use if $^O eq 'MSWin32' ? 'Thing::Win32' : 'Thing::nix';
    
    sub new { $^O eq 'MSWin32' ) ? &Thing::Win32->new() : &Thing::nix->new
    +(); }
    
  4. or download this
    can_ok $q => 'nq';
    can_ok $q => 'dq';
    can_ok $q => 'n';
    
  5. or download this
    not ok 1 - async::Q->can('pq')
    #   Failed test 'async::Q->can('pq')'
    #   at -e line 1.
    #     async::Q->can('pq') failed
    
  6. or download this
    Can't locate object method "pq" via package "async::Q" at -e line 1.
    
  7. or download this
    #! perl -slw
    use strict;
    ...
    
    C:\test>perl async\Q.pm -N=1e4 -T=200 -SIZE=400
    1e4 items by 200 threads via three Qs size 400 in 8.310000 seconds