I once had the same need and didn't even think of asking about a module, nor did I look at the Win32:: set of modules. So I did my own little snippet, that went something like this. I think this was it, I don't have a windows box to test it on anymore, so you know... it might not be right.
my @drives;
for my $drive ('A' .. 'Z') {
opendir DRIVE, "$drive:/" and push @drives, $drive;
}
print "Drives: ", (join ', ', @drives), "\n";
If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, please reply to this node or /msg me to inform me as to what is wrong with the post, so that I may update the node to the best of my ability.