openning file...

2006-04-01 Thread kurtz le pirate
hello, mac os x store file name in utf-8 format. so, how to open file with special characters in name ? a very simple exemple is a file name that begin with space. if i write : open(FILE, Read in a file), perl return an error: *** can't open [ Read in a file] : No such file or directory i

Re: openning file...

2006-04-02 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Sherm Pendley) wrote: The wanted function only gets the file name of the file, which is not enough to open the file with, if it's in a subdirectory. Try calling open() with the full path to the file, not just the file name alone. sory but

Re: openning file...

2006-04-02 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ken Williams) wrote: On Apr 1, 2006, at 2:49 AM, kurtz le pirate wrote: hello, mac os x store file name in utf-8 format. so, how to open file with special characters in name ? a very simple exemple is a file name that begin

Re: Regex and Mac vs UNIX line endings

2006-07-20 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Andrew Brosnan) wrote: I'm processing a string with embedded newlines. For testing I was storing the text in __DATA__ and slurping it into a string. This works fine. However when I read in a file, I'm having trouble with the line endings.

upgrade

2006-10-08 Thread kurtz le pirate
hi, do yoy know how to upgrade perl on panther from 5.8.1-rc3 to 5.8.8 ? -- klp

Re: Uh-oh, the C compiler 'cc' doesn't seem to be working.

2006-10-28 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joel Rees) wrote: PPC Mac Mini, Mac OS X 10.4.8, I'm following along in README.macosx and I've done this: export SDK=/Developer/SDKs/MacOSX10.4u.sdk and I call ./Configure -Accflags=-nostdinc -b$SDK/user/include/gcc -B$SDK/usr/

5.8.8 builded but...

2006-10-29 Thread kurtz le pirate
me too, ok, now, with no sdk options, build perl is ok. #./configure #make ... Everything is up to date. Type 'make test' to run test suite. #make test ... All tests successful. u=3.97 s=3.49 cu=216.67 cs=71.70 scripts=931 tests=117291 # ...but I did not pay attention to the

Re: 5.8.8 builded but...

2006-10-29 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joel Rees) wrote: Did you do the make install? i don't ! The make install step moves your executables where you specify. If you don't specify, the default is /usr/local/bin which, in my opinion, is as good a place as any. no perl

Re: 5.8.8 builded but...

2006-10-30 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joel Rees) wrote: ... Did you do the make install? ...hum shame on me too ! i forgot it :((( now all is ok :)) -- klp

Re: Strange problem with @INC

2007-01-11 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jesse Engel) wrote: for some reason, X11 has a different version of @INC than reported with apple's terminal. if i run perl -e 'foreach (@INC) { print $_\n;}' with apple_terminal, i get for me, under 'terminal' i get :

Re: CamelBones on MySpace

2007-01-17 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Sherm Pendley) wrote: Well, I've finally given into peer pressure and created a MySpazz account and CamelBones group: http://www.myspace.com/camelbones is the music essential ? -- klp

Re: ANNOUNCE: Perl Dev Kit 7.0 Beta 2 available

2007-02-02 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jan Dubois) wrote: I'm happy to announce the release of the Perl Dev Kit 7.0 Beta 2. http://www.activestate.com/products/perl_dev_kit/beta.plex ... seems attractive but : System Requirements * Mac OS X 10.4 Tiger or later *

Re: Getting all file paths

2007-03-23 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hi, I'm still new to Perl and was just curious if the code below is ok to use. Also, can someone direct me to more information about file::find? I'd like to know if -d means directory (I assume it does) as well as -f and other

Re: Getting all file paths

2007-03-23 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Daniel T. Staal) wrote: You mean 'my %files'. You also don't need the '=()', but it doesn't hurt either. find(sub { if (!/^\./ !-d) { $files{$_} = $File::Find::name } }, /Volumes/Server/Folder/Path/); print $files{sku123}; # example

Re: install Bundle::CPAN failing

2007-08-12 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Noah) wrote: newbie to OSX perl but installing Bundle::CPAN is failing a lot of modules install successfully except when it reaches Mac::Files (I think?) the test fails. what is the best course of action here? ... Warning: Prerequisite

Re: Detecting OS X version from perl

2007-11-18 Thread kurtz le pirate
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Chris Devers) wrote: Quick report: $ system_profiler -detailLevel mini Obsessive detail report: $ system_profiler -detailLevel full a little more precise if use system_profiler : system_profiler SPSoftwareDataType|grep