"out of memory" error in Panther, not in Jaguar?

2004-05-06 Thread Xavier Broccoli
(sorry if this is a repost, I sent it before confirming my subscription) I'm having a memory problem with Perl in Panther that I didn't have in Jaguar. When I try to read a large text file using the line input operator (<>), I get an "out of memory" error: *** malloc: vm_allocate(size=8421376) f

Re: "out of memory" error in Panther, not in Jaguar?

2004-05-06 Thread Xavier Broccoli
Oh, you are so right. I guess Panther is just stingier with its memory, and I never got bitten by this before! Thanks!! XB --- Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote: > > *** malloc: vm_allocate(size=8421376) failed > (error > > code=3) > > *** malloc[5576]: error: Can't allocate region >

Re: "out of memory" error in Panther, not in Jaguar?

2004-05-06 Thread Sherm Pendley
On May 7, 2004, at 2:32 AM, Xavier Broccoli wrote: The strange thing is that I'm not slurping up the whole file The code you posted *does* slurp the whole file. foreach my $line () { chomp $line; (do something...) } "foreach" is documented in perlsyn as "LABEL foreach VAR (LIST) BLOCK". Th

Re: [OT] Localization

2004-05-06 Thread wren argetlahm
--- Thane Norton <[EMAIL PROTECTED]> wrote: > The complete "official" answer can be found > here: Wow that's a long URL. Thanks a bundle* for it though, it has what I was looking for (which was localizing some of my folder names rather than localizing apps). ~wren * pardoning the pun ;)

Re: [OT] Localization

2004-05-06 Thread Sherm Pendley
On May 6, 2004, at 3:12 AM, wren argetlahm wrote: Wow that's a long URL. Better? ;-) sherm--

CGI: Cookie isn't set

2004-05-06 Thread Ingo Weiss
Hi all, I am experiencing a problem that appears to be caused by a cookie not being set, but so far it occurs only on a couple of IE/MacOS 9 machines. I am assuming that if I set the cookie preferences in IE to "always accept" cookies should work. What else could prevent a cookie from being set?

sudo and cpan

2004-05-06 Thread Joel Rees
Okay, I seem to have forgotten how to use CPAN. Where are the detailed instructions? (perldoc cpan only gets me a page.) And while I'm making noise, When you have perl 5.6 as the system perl (/usr/bin) and perl 5.8 as a parallel install in /usr/local/bin, you want to set your user's path to put

OS X

2004-05-06 Thread Stephen Harris
Hi, Decided to teach myself Perl and the got "Sam's Teach Yourself Perl in 24 hrs" (book & CD ) from the local library. I began working with the book and found that perl 5.6.1 only runs in Classic environment, but that the Unix version of perl "runs fine" in OS X. OK, maybe, but how do you get i

Re: sudo and cpan

2004-05-06 Thread Joel Rees
On 2004.5.6, at 08:08 PM, Joel Rees wrote: Okay, I seem to have forgotten how to use CPAN. Where are the detailed instructions? (perldoc cpan only gets me a page.) And while I'm making noise, When you have perl 5.6 as the system perl (/usr/bin) and perl 5.8 as a parallel install in /usr/local/bi

Re: sudo and cpan

2004-05-06 Thread Andrew M. Langmead
On May 6, 2004, at 7:08 AM, Joel Rees wrote: When you have perl 5.6 as the system perl (/usr/bin) and perl 5.8 as a parallel install in /usr/local/bin, you want to set your user's path to put /usr/local/bin in front of /usr/bin before you run cpan, so cpan doesn't get confused, right? The 'cpan

Re: OS X

2004-05-06 Thread Chris Devers
On Thu, 6 May 2004, Stephen Harris wrote: > I decided to teach myself Perl and the got "Sam's Teach Yourself Perl > in 24 hrs" (book & CD ) from the local library. > > I began working with the book and found that perl 5.6.1 only runs in > Classic environment, but that the Unix version of perl "run

Re: OS X

2004-05-06 Thread Joel Rees
On 2004.5.6, at 09:01 PM, Stephen Harris wrote: Hi, Decided to teach myself Perl and the got "Sam's Teach Yourself Perl in 24 hrs" (book & CD ) from the local library. I began working with the book and found that perl 5.6.1 only runs in Classic environment, That would be macPerl 5.6.1? but that

Re: sudo and cpan

2004-05-06 Thread Chris Devers
On Thu, 6 May 2004, Joel Rees wrote: > On 2004.5.6, at 08:08 PM, Joel Rees wrote: > > What I'm thinking about is learning enough sh to split the path and > insert /usr/local/bin in the middle, because I really don't want to put > > set path=(/bin /sbin /usr/local/bin /usr/bin /usr/sbin) > > i

Re: OS X

2004-05-06 Thread Chris Devers
On Thu, 6 May 2004, Stephen Harris wrote: > Thanks, Chris. I am only a nerd wannabe, so I'll try going > the OS X route and the Learning Perl book until I get ready > to shell out $100 for Panther. If you get stuck on anything, please feel free to write to the <[EMAIL PROTECTED]> list. Many of us

Re: sudo and cpan

2004-05-06 Thread Joel Rees
On 2004.5.6, at 09:58 PM, Chris Devers wrote: ... But anyway, back to your original question. Your /usr/bin/cpan should just be a little Perl script that amounts to little more than this: $ /usr/bin/perl -MCPAN -e shell hmm. I could have sworn I'd ended up with non-interactive behavior when I

Re: sudo and cpan

2004-05-06 Thread Chris Devers
On Thu, 6 May 2004, Joel Rees wrote: > Thanks. Any thoughts about the file locks left over when I run without > sudo and quit? Your CPAN home directory should be something like ~/.cpan/ -- look in there for a lock file, possibly owned by root. Delete it while the CPAN shell isn't running (use sud

Re: sudo and cpan

2004-05-06 Thread x
Hi! I am new to the list. Here is what I have learned so far about perl and the Mac. 1.) My experience with Mac OS X is that you need to heavily modify your PATH. If you add /usr/bin to the path you can just type perl -MCPAN -eshell. I also verified that the size of perl matched the perl versi

Re: CGI: Cookie isn't set

2004-05-06 Thread Bill Stephenson
Hi Ingo, Send the snippet of code you're using to set the cookie so we can get a clear idea of what you're doing. Kindest Regards, Bill Stephenson 417-546-5593 On May 5, 2004, at 1:42 PM, Ingo Weiss wrote: Hi all, I am experiencing a problem that appears to be caused by a cookie not being set, bu

GD** (catching error)

2004-05-06 Thread xweb
Hi! How can catch an "JPEG library reports unrecoverable error: Not a JPEG file..."My script die and instead, i would continue.Pratically i need of a "check" but i am not able to check this type of error! Can someone help me? Thanks

Hiding warning from module

2004-05-06 Thread Mike Schienle
Hi all - I'm using the Spreadsheet::ParseExcel::Simple module to extract data from some Excel files. Everything is running nicely, but I'm getting a warning from the module when I read one of the Excel files, but not with all of them. I haven't had the time to find out the exact cause, but

Re: Hiding warning from module

2004-05-06 Thread Mike Schienle
On May 06, 2004, at 10:00 AM, Mike Schienle wrote: Here's the message when I run the program: Character in 'C' format wrapped in pack at /usr/local/cb/perl5.8.4/lib/site_perl/5.8.4/Spreadsheet/ParseExcel/ FmtDefault.pm line 68. Getting a little further along here. It looks like these are being

Mac OS X and perl

2004-05-06 Thread Chris Nandor
Could we please keep this mailing list about issues that are directly related to both Mac OS X and perl? It's becoming a busy mailing list, and I don't have the time to keep up with all these things that are general perl issues, or general Mac OS X issues. I suppose the latter isn't too bad, a

Re: CGI: Cookie isn't set

2004-05-06 Thread Ingo Weiss
Thanks, Bill here is the code I'm using to set the cookie: # create cookie: $packed_cookie = $query->cookie(-NAME => "cookieName", -VALUE => "cookieValue", -EXPIRES => "+10m" ); # set cookie:

Re: GD** (catching error)

2004-05-06 Thread Bill Stephenson
On May 6, 2004, at 8:02 AM, xweb wrote: Hi! How can catch an "JPEG library reports unrecoverable error: Not a JPEG file..."My script die and instead, i would continue.Pratically i need of a "check" but i am not able to check this type of error! Can someone help me? Thanks if your code looks simi

Re: Mac OS X and perl

2004-05-06 Thread Bill Stephenson
On May 6, 2004, at 1:28 PM, Chris Nandor wrote: Could we please keep this mailing list about issues that are directly related to both Mac OS X and perl? It's becoming a busy mailing list, and I don't have the time to keep up with all these things that are general perl issues, or general Mac OS X

Perl GUI

2004-05-06 Thread Bill Stephenson
I've been playing with X-Code, Interface Builder, and CamelBones a little bit and I wonder Is it too far fetched to think about a GUI that coded perl on Mac OS X? Something like the old "Apple Media Tool" or "iShell" or "GoLive". It looks like a lot the pieces are there just waiting to be g