On Thu, 7 Feb 2002, Pong wrote: > > $bits=24; > $fullmask = 2 ** 32; > $netmask = $fullmask << (32-$bits); > $hosts = $fullmask - $netmask; > print "No. of hosts: $hosts\n"; > oops sorry, hardware-dependent pala 'to. wont work on integers bigger than 32bits. pong _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
- [plug] [OT] bitwise operations with perl Orlando Andico
- [plug] Re: [OT] bitwise operations with perl Orlando Andico
