Re: CoreFoundation XS

2003-08-15 Thread Dan Sugalski
At 9:22 AM -0700 8/14/03, Thane wrote:
I am trying my first stab at a (personally) useful XS project, and have
gotten stymied by CoreFoundation.  I can do the Hello World printf example,
but dyld cannot load CF, so all of my CF calls fail to link.  What am I
missing?
Something like:

 dynamic_lib => {'OTHERLDFLAGS' => '-framework CoreFoundation'},

in your WriteMakefile parameters in Makefile.PL, I expect. :)
--
Dan
--"it's like this"---
Dan Sugalski  even samurai
[EMAIL PROTECTED] have teddy bears and even
  teddy bears get drunk


Re: japanese in regular expressions possible?

2003-08-15 Thread Ken Williams
On Friday, August 15, 2003, at 01:50  AM, Joel Rees wrote:
I'll give it a try, soon as I can get 5.8 installed on my iBook. 
(Running short of disk space, so I've been putting it off.)
Yeah, I recently put an 80G drive in my iBook, and it makes a HUGE 
difference.  I highly recommend doing it - newegg.com has some good 
prices on stuff, and macsales.com is a good place to begin shopping.

 -Ken



Re: How to stat ... lstat!

2003-08-15 Thread Chris Thorman
I should be using lstat!

Doh.  Sorry for a silly question.  

Note to self: never post to list at 1AM. :-)

-c

At 12:53 AM -0700 8/15/03, Chris Thorman wrote:
>Hi,
>
>I'm trying to stat a symlink, but it seems I am always getting the stat of the 
>destination of the link instead, so Fcntl macros like S_ISLNK of course are not 
>working. 
>
>But somehow perl's -l operator is still able to tell that the item is a link.
>
>For example:
>
>mkdir -p /mylink2; ln -sf mylink2 /mylink; 
>perl -e 'use Fcntl ":mode"; printf "%06o: %d: %d\n", $m=(stat($p="/mylink"))[2], 
>S_ISLNK($m), (-l $p)'
>
>RESULT:
>
>040755: 0: 1
>
>EXPECTED:
>
>120777: 1: 1
>
>How can I get the stat for the link itself?
>
>Any assistance would be appreciated.
>
>-c
>
>
>P.S. In case you're wondering:
>
>[Why do I want to use stat() instead of -l?  Because I am indexing an entire disk's 
>worth of files and want to execute the minimum number of stat() calls.  Certainly I 
>don't want to have to use -l with a path on every file -- I want to get the mode and 
>other stat values once and then use the sys/stat.h (use Fcntl) macros S_ISLNK, 
>S_ISDIR, etc.]
>
>[Why do I care to distinguish symlinks? Because I generally don't want to traverse 
>them in building my index.]



How to stat a symlink rather than its target dir?

2003-08-15 Thread Chris Thorman
Hi,

I'm trying to stat a symlink, but it seems I am always getting the stat of the 
destination of the link instead, so Fcntl macros like S_ISLNK of course are not 
working. 

But somehow perl's -l operator is still able to tell that the item is a link.

For example:

mkdir -p /mylink2; ln -sf mylink2 /mylink; 
perl -e 'use Fcntl ":mode"; printf "%06o: %d: %d\n", $m=(stat($p="/mylink"))[2], 
S_ISLNK($m), (-l $p)'

RESULT:

040755: 0: 1

EXPECTED:

120777: 1: 1

How can I get the stat for the link itself?

Any assistance would be appreciated.

-c


P.S. In case you're wondering:

[Why do I want to use stat() instead of -l?  Because I am indexing an entire disk's 
worth of files and want to execute the minimum number of stat() calls.  Certainly I 
don't want to have to use -l with a path on every file -- I want to get the mode and 
other stat values once and then use the sys/stat.h (use Fcntl) macros S_ISLNK, 
S_ISDIR, etc.]

[Why do I care to distinguish symlinks? Because I generally don't want to traverse 
them in building my index.]