Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl to cook you coffee

by jwkrahn (Abbot)
on Feb 07, 2011 at 07:33 UTC ( [id://886611]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($device eq undef) {
            die "Usage: <app> /dev/hidrawN";
            exit;
    }
    
  2. or download this
    @ARGV or die "Usage: <app> /dev/hidrawN";
    
  3. or download this
        my $report = ord(substr($data, 1, 1));
        my $status = ord(substr($data, 2, 1));
    ...
        if($exp != 255 && $exp != 0) {
            $weight ^= $exp;
        }
    
  4. or download this
        my ( $report, $status, $unit, $exp, $weight ) = unpack 'xCCCCS', $
    +data
        $weight /= 10;
    ...
            $weight ^= $exp;
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://886611]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-25 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found