Crypt::IDEA problems

2005-06-15 Thread John Mercer
Hi, I'm having problems installing Crypt::IDEA on my mac (10.4). sudo perl Makefile.pl works fine. However, when I run make or make test, I get the following error message: gcc -c -fno-common -DPERL_DARWIN -no-cpp-precomp - DUSE_SITECUSTOMIZE -DNO_HASH_SEED -DBUILT_BY_ACTIVESTATE

Re: Crypt::IDEA problems

2005-06-15 Thread Daniel T. Staal
John Mercer said: Is the problem with endian.h? What is endian.h? I googled it, and found that it was part of GLT, but I don't see how that could be related to an encryption mod. Well, I can answer this part of the question... endian.h looks to be a fairly general file, that GLT just happens

Re: Crypt::IDEA problems

2005-06-15 Thread Edward Moy
Looks to me that _idea.c is assuming that all system have /usr/ include/endian.h, which is false (it's probably a Linux assumption). You can probably get this to work by changing line 8 to: #include machine/endian.h for Mac OS X anyways. Edward Moy Apple On Jun 15, 2005, at 8:01 AM, John

Re: Crypt::IDEA problems

2005-06-15 Thread John Mercer
Good call, Ed. That fixed the problem. Smooth install. Thanks, jm On Jun 15, 2005, at 12:21 PM, Edward Moy wrote: Looks to me that _idea.c is assuming that all system have /usr/ include/endian.h, which is false (it's probably a Linux assumption). You can probably get this to work by

Parsing UTF8 files with wide characters

2005-06-15 Thread Robin
I thought I'd understood how to use unicode support in perl, but evidently not. In the script below, I'm stumped as to: 1) why the regex won't match ''. 2) why the substitution is carried out, but the result isn't in UTF8, nor is it UTF8 re-encoded in UTF8 (uncomment #require Encode;

Re: Parsing UTF8 files with wide characters

2005-06-15 Thread Andrew Mace
Try use utf8 - it lets Perl know that your script contains utf8 chars. More info: http://perlpod.com/5.9.1/lib/utf8.html Andrew On Jun 15, 2005, at 2:48 PM, Robin wrote: I thought I'd understood how to use unicode support in perl, but evidently not. In the script below, I'm stumped as

Re: Parsing UTF8 files with wide characters

2005-06-15 Thread Sherm Pendley
On Jun 15, 2005, at 2:48 PM, Robin wrote: I thought I'd understood how to use unicode support in perl, but evidently not. In the script below, I'm stumped as to: 1) why the regex won't match ''. 2) why the substitution is carried out, but the result isn't in UTF8, nor is it UTF8 re-encoded

Re: Parsing UTF8 files with wide characters

2005-06-15 Thread Robin
thanks Andrew and Sherm I went back to look at perluniintro because I was sure I could remember reading that the use utf8 pragma was no longer needed, right under where it says this it continues Only one case remains where an explicit use utf8 is needed: if your Perl script itself is encoded

Re: Parsing UTF8 files with wide characters

2005-06-15 Thread John Delacour
At 4:26 am +0900 16/6/05, Robin wrote: I went back to look at perluniintro because I was sure I could remember reading that the use utf8 pragma was no longer needed, right under where it says this it continues Only one case remains where an explicit use utf8 is needed: if your Perl script

Re: Parsing UTF8 files with wide characters

2005-06-15 Thread Joel Rees
On 2005.6.16, at 05:13 AM, John Delacour wrote: At 4:26 am +0900 16/6/05, Robin wrote: I went back to look at perluniintro because I was sure I could remember reading that the "use utf8" pragma was no longer needed, right under where it says this it continues "Only

Flat file being Scrambled

2005-06-15 Thread Mark Wheeler
Hi, Here's a quick question. This doesn't have anything to do with perl on my mac, but just a perl question. I have a a small script that simply increases a number by 1, when it is run, then writes the changes back to the file. I am using it to check how many people come to the site by way

Re: Flat file being Scrambled

2005-06-15 Thread Randal L. Schwartz
Mark == Mark Wheeler [EMAIL PROTECTED] writes: Mark open (FILE, $pathtodatafile) || die (Cannot open file); Mark flock (FILE, 2); 0wn3d! That's your breakage. Once in a blue mooon, you'll kill your entire data this way. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503

Re: Flat file being Scrambled

2005-06-15 Thread Mark Wheeler
Hi, Sorry, I don't understand. What's my breakage? Should I not use flock? Thanks, Mark Mark open (FILE, $pathtodatafile) || die (Cannot open file); Mark flock (FILE, 2); 0wn3d! That's your breakage. Once in a blue mooon, you'll kill your entire data this way

Re: Flat file being Scrambled

2005-06-15 Thread Ken Williams
Hey Mark, I doubt any mortal brain could follow all the various permutations of clients hitting your files and trying to lock them while some other client is doing the same. But here's one way your data could get hosed: one client reads the file in between the time another client opened it

Re: Crypt::IDEA problems

2005-06-15 Thread Daniel Staal
--As of Wednesday, June 15, 2005 7:40 PM -0500, Ken Williams is alleged to have said: Don't worry, Apple has solved the Endian problem once and for all with the move to Intel: --As for the rest, it is mine. And if you believe that, I've got some nice land for you in the jungles of Venus.