Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Working with Binary Numbers

by shoness (Friar)
on Sep 24, 2007 at 20:36 UTC ( [id://640813]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @data = qw( 000- 0101 011- 1-0- );
    
  2. or download this
    my @data = qw( 0 1   5   6 7   8 9 12 13 );
    
  3. or download this
    sub to_binary {
         my $str = shift;
    ...
         }
         return $value;
    }
    
  4. or download this
    for (my $ii=0; $ii<@data; $ii++) {
      if (@data[$ii] =~ /-/) {
    ...
        return $str;
      }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found