in reply to Bitwise operators
Thanks for everyone's help and patience, hopefully the perlfaq will provide some answers from hereon in, though it's nice to know there is somewhere to come and ask very basic questions without setting off howls of derisive laughter!#!/usr/bin/perl #converter.plx use warnings; use strict; print "Please input a decimal no. to convert to binary : "; chomp (my $value = <STDIN>); $value = unpack("B*", pack("N", $value)); print "$value";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bitwise operators
by davido (Cardinal) on Dec 24, 2006 at 17:45 UTC | |
by thevoid (Scribe) on Dec 24, 2006 at 22:00 UTC |