Re: The 5.8.0 port anyone?

[email protected] (Glyn Royds) Thu, 3 Jul 2003 09:36:58 +0100
Newsgroups perl.riscos
Message-ID <gemini.3f03eb29000bc340%[email protected]>
James Taylor <[email protected]> wrote:

> On Wed 02 Jul, James Taylor wrote:
> > 
> > On Wed 02 Jul, Glyn Royds wrote:
> > > 
> > > It converts a number to binary, padded out to 16 characters with 0's.
> > > As something of a perl novice I was about to start writing a routine
> > > to do the same
> > 
> > Well, here's one:
> [...snip...]
> 
> And if you know it will always be a 16-bit integer
> you can use pack/unpack like this:
> 
> unpack 'B16', pack 'n', $value;

Cheers James! It's looking like time I bought a book on Perl (not like the
olden days when I picked up languages by trial & error :-)

All the best,
  Glyn.