Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

help porting a line of bitwise C code to perl

by blahblahblah (Priest)
on Mar 07, 2008 at 04:07 UTC ( [id://672660]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            return (func(token4) & 95) | (func(token5) & 32
                    | func(token5) & 128);
    
    /* "func" is defined as: */
     unsigned long func (c) unsigned char *c;
    
  2. or download this
      (0 & 95) | (32 & 32) | (32 & 128)
    
  3. or download this
    perl -e 'print ((0 & 95) | (32 & 32) | (32 & 128))'
    

Log In?
Username:
Password:

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

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

    No recent polls found