Internal (bit) representation of floating point numbers

2004-11-27 Thread Sisyphus
Hi, Trying to view the internal "native" representation of floating point numbers, so I tried: perl -e "print unpack('B*', pack('d', 1.0))" perl -e "print unpack('B*', pack('d', 2.0))" perl -e "print unpack('B*', pack('d', 3.0))" Is that the correct way ? I get: 00

SetErrorMode, Win32::API

2004-11-27 Thread Jeremy A
hi all, i want to use Win32's SetErrorMode to disable the error popup (page fault), in a perl program which happens from time to time intermitently. I want to suppress the error dialog (which halts the process), so i can restart it automatically on failure...the program is a server, so this is n

Re: some error with the code

2004-11-27 Thread eric-amick
> As you can see, perl simplified your unquoted numerical strings > by dropping the > leading zeros *before* stringifying them to use as hash keys. Quoting them > explicitly solves the problem. Actually, Perl interprets the values with leading zeros as octal numbers; that's why 00056 became 46