#!/usr/bin/perl -wl use strict; my $char = '~'; print ord $char; printf "%08b\n", ord $char; __END__ Prints: 126 01111110
* The "%b" format is only available with perl5.6 or later.
--
John.
In reply to Re: using vec() and unpack()
by jmcnamara
in thread using vec() and unpack()
by Gerard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |