ACTIVEPERL_VERSION used to be a string and so fails =822 test

2007-09-14 Thread Suresh Govindachar
Jan Dubois wrote: should be written more general like this: /* ActivePerl build 822 still identifies itself as 5.8.8 but * already contains many of the changes from the upcoming * Perl 5.8.9 release. */ #if (ACTIVEPERL_VERSION = 822) # define

RE: ACTIVEPERL_VERSION used to be a string and so fails =822 test

2007-09-14 Thread Suresh Govindachar
ACTIVEPERL_VERSION is a string in older versions of ActivePerl. Googling showed ACTIVEPERL_VERSION as a number in 5.8.7 build 813; and we are only concerned with later buids of 5.8.8. So I decided to use the following guard: #if (PERL_REVISION == 5) (PERL_VERSION == 8)

Big endian C to perl on x86 of binary file into structure

2007-09-14 Thread Suresh Govindachar
Hello, The following code is meant for a Big-endian processor running linux. The code reads binary files and assigns values to structures. I would like to read the same data files in perl on Windows on little endian x86. Any tips on doing the translation? typedef struct s_str_boo