I'm not sure there is really a simple Perl answer. However so that you appreciate what's going on, a little background may help.
USB devices use device drivers which are accessed either by using CreateFile to open file handles - if you know the nasty "filename" for the device (enumerating USB devices to get their "file names" is a bit exciting BTW), or hook themselves into various parts of the system depending on the sort of device that they are (mice, sound devices, disk drives ...).
So if the device you wish to access looks like a disk drive, treat it just like a disk drive. If it is something "special" then you will need a special answer. If you wish to post a little more information about the type of device and how you want to use it, I may be able to help further.
Perl is Huffman encoded by design.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.