in reply to Re^5: USB interface
in thread USB interface

Why use polling when the WMI tells you? The synopsis of DBD::WMI shows an example that detects when a drive gets added/removed. Alternatively, I think I would hook into the dialog that asks "What to do with this device?" whenever a new device is added. But this is all Windows and the question seems to be for Linux...