I wrote DBD::WMI for that case. It only works under Windows, because WMI (or rather, WBEM) isn't as widespread elsewhere. I don't have the WMI query handy at the moment, but the links I have in DBD::WMI should point you towards the correct resources.
In reply to Re: Detect Plugged USB Flash Drive / CD in CDROM Drive
by Corion
in thread Detect Plugged USB Flash Drive / CD in CDROM Drive
by renegadex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |