in reply to Re^2: randomly choosing an alphabetic letter
in thread randomly choosing an alphabetic letter

What you would want to do, then, is use each one in a loop, rather than getting them ahead of time. That is, rather than:

my @drives = ( Win32::GetNextAvailDrive(), Win32::GetNextAvailDrive(), Win32::GetNextAvailDrive(), Win32::GetNextAvailDrive(), ); do_stuff_with(@drives);
do this:
for (1..4) { my $drive = Win32::GetNextAvailDrive(); do_stuff_with($drive); }
Hopefully, do_stuff_with() will net use or something so that the drive becomes unavailable (in use) so the next time through, Win32::GetNextAvailDrive will get a new drive.