Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Binary value of string

by BrowserUk (Patriarch)
on Jul 11, 2011 at 19:08 UTC ( #913756=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $sum = 0; 
    $sum += $_ for unpack 'C*', "This is a string to change to binary"; 
    print $sum;;
    3325
    
  2. or download this
    print unpack '%32C*', "This is a string to change to binary";;
    3325
    
  3. or download this
    print unpack '%64C*', "This is a string to change to binary";;
    3325
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2023-12-04 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?