Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: sequential file handlingby maverick (Curate) |
on May 30, 2002 at 23:07 UTC ( [id://170545]=note: print w/replies, xml ) | Need Help?? |
Here's how to do just the 'round robin' part.
The % operator gives you the remainder of the division of $counter / $num_targets, which will be 0, 1 or 2 for any value of $counter. Use that number to select the proper directory out of the array. Run this little snippet and you can see the result...
/\/\averick
In Section
Seekers of Perl Wisdom
|
|