Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: passing bits of an array to an executable a piece at a time

by BrowserUk (Patriarch)
on Aug 08, 2003 at 12:10 UTC ( [id://282162] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    launch_background( 
        'glim.exe', 
        'glim', 
        join' ', splice( @$ids, 0, 200 );
    ) while @$ids;
    
  2. or download this
    launch_background( 
        'glim.exe', 
        'glim', 
        join' ', @{ $ids }[ $_ .. ( $_ + 200 ) ]
    ) for map $_ * 200, 0 .. int( @$ids / 200 );