[MacPerl] Re: MacPerl 5.6.1 Beta 2 Warning

2001-11-14 Thread Scott R. Godin
In article , [EMAIL PROTECTED] (Chris Nandor) wrote: > I plan on MacPerl 5.6.1b2 release for next week (probably late in the > week). No guarantees, of course. Regardless, if you want to file any bug > reports or finish something you want included, get it in

Re: [MacPerl] Is there a simpler way...

2001-11-14 Thread Jeff Lowrey
At 4:19 PM -0800 11/14/01, ehughes wrote: >Hello All, > >I have some simple files to parse. The data looks like this: > >546342059 > >806713793 > >The first column is an activity code and the second column is a client id >number. > >Here is my task. I need to find the numbe

Re: [MacPerl] Is there a simpler way...

2001-11-14 Thread ehughes
on 11/14/01 4:30 PM, Bob Dalgleish at [EMAIL PROTECTED] wrote: > How about: > > while ( $_ = <> ) { > chomp; > ($code, $person) = split(/\s/); > $codeCount{$code} ++; > } > > # print them out > foreach $code (sort keys %codeCount) { > print "$code:\t$codeCount{$code}\n"; > } > It might work,

[MacPerl] Is there a simpler way...

2001-11-14 Thread ehughes
Hello All, I have some simple files to parse. The data looks like this: 546342059 806342059 316158566 546158566 806158566 316341718 546341718 806341718 316341743 546341743 54

Re: [MacPerl] Using CPAN-shell.plx

2001-11-14 Thread Chris Nandor
At 19:06 + 2001.11.14, Phil Dobbin wrote: >It seems after the [] I cannot input _anything_. Two things: 1. 5.6.1b1 and previous had a problem with ctrl-D. 2. The CPAN shell on MacPerl uses ctrl-D sometimes, and return at other times. It's an exercise to the user to figure out which is which

Re: [MacPerl] Out of Memory!

2001-11-14 Thread Carsten Buchholz
Morbus Iff wrote: > ... "Get Info" on the MacPerl application, and double or triple the > amount of memory that it can use. Last I checked my MacPerl, I had it using > a minimum of 40 megs and a max of 80. I had the experience that big hashes do NOT work better if I grant MacPerl 200 MB instead

[MacPerl] Using CPAN-shell.plx

2001-11-14 Thread Phil Dobbin
Hi, all. I got 5.6.1b1 CPAN to work but got stuck at this point. Whatever I did here, nothing happened. If you could let me know how to proceed from here, I'd be really greatful (at this point my connection is still live. But whatever I do, either by cursor or kybd, nothing happens). I know it

Re: [MacPerl] Out of Memory!

2001-11-14 Thread Morbus Iff
>I have a new G4 that came with OS X and OS 9.2 already installed. I have >rewriten the code and still it does not seem to work. It says Out of Memory! >Out of Memory! Out of Memory! Is it trying to find the Perl that came with >OS X or what. I have had this thing work on my iMac before I got

[MacPerl] Out of Memory!

2001-11-14 Thread Josh Kirk
I have a new G4 that came with OS X and OS 9.2 already installed. I have rewriten the code and still it does not seem to work. It says Out of Memory! Out of Memory! Out of Memory! Is it trying to find the Perl that came with OS X or what. I have had this thing work on my iMac before I got this New

Re: [MacPerl] disabling menus in MacPerl

2001-11-14 Thread Axel Rose
thanks for the info, it wouldn't matter much but DisableItem $menu; sleep( 5 ); behaves strange to me. The menu is only disabled after the sleep() returns. Is this correct? Axel

Re: [MacPerl] disabling menus in MacPerl

2001-11-14 Thread Chris Nandor
At 17:39 +0100 2001.11.14, Axel Rose wrote: >Problems temporarily observed: >if I replace pause() with sleep() the menu isn't disabled >immediately after the call That seems reasonable. sleep() doesn't necessarily allow MacPerl to handle events, but WaitNextEvent() does. >5.20r4 seems to disabl

Re: [MacPerl] Another AppleEvent question again: params in do script

2001-11-14 Thread Andreas Marcel Riechert
Chris Nandor <[EMAIL PROTECTED]> writes: > At 17:20 +0100 2001.11.14, Andreas Marcel Riechert wrote: > >The Backslash and Yen-Sign (= an Y with two vertical strokes) have the > >same code-point in 7-bit ASCII/ JIS-ROMAN. So if an American sees a > >Backslash, Japanese users of MacPerl etc. may se

[MacPerl] disabling menus in MacPerl

2001-11-14 Thread Axel Rose
Hello, is this the proper way to disable MacPerl menus (here the File menu) of MacPerl itself during runtime? use Mac::Menus; use Mac::Events; my $menu = GetMenu 129; DisableItem $menu; pause( 10 ); EnableItem $menu; exit; sub pause { my ($time) = @_; my $start = time; WaitNextEvent

Re: [MacPerl] Another AppleEvent question again: params in doscript

2001-11-14 Thread Chris Nandor
At 17:20 +0100 2001.11.14, Andreas Marcel Riechert wrote: >The Backslash and Yen-Sign (= an Y with two vertical strokes) have the >same code-point in 7-bit ASCII/ JIS-ROMAN. So if an American sees a >Backslash, Japanese users of MacPerl etc. may see a Yen-sign. Aha. Thanks for the info. -- Chr

Re: [MacPerl] Another AppleEvent question again: params in do script

2001-11-14 Thread Andreas Marcel Riechert
Chris Nandor <[EMAIL PROTECTED]> writes: > At 21:49 +0900 2001.11.13, Nobumi Iyanaga wrote: > >> > >>use Mac::AppleEvents; > >>my (%ae, $event, $reply); > >> > >>my $macro; > >>$macro = 'Find/Replace "a" "b" "-g-SaA"'; > >> > >>%ae = ( > >>target =>'NISI', > >>class =>'aevt', > >>id =>'dosc'

Re: [MacPerl] Another AppleEvent question again: params in doscript

2001-11-14 Thread Chris Nandor
At 21:49 +0900 2001.11.13, Nobumi Iyanaga wrote: >I posted this query some days ago, but it seems that there was no answer at >all. I would like to ask the same question again, assuming that probably >nobody noticed my posting. I saw it, but I don't use Nisus Writer. I'll try to help as much as

Re: [MacPerl] save as CGI

2001-11-14 Thread Chris Nandor
At 22:42 -0500 2001.11.13, Ingo wrote: >I would like to build a CGI for use with MacHTTP. I read that you >don't need the CGI glue any more and that the current MacPerl >simply saves as CGI. But, I don't get the CGI option in the "save >as" menu, just "plain text", "runtime version" and "droplet".

[MacPerl] re: running a script automatically

2001-11-14 Thread Louis Pouzin
Thanks David, Keary, Chris, Calling MacPerl from NisusWriter via Applescript (AS) does work, except it's sluggish. Calling a droplet works well too. It's faster than AS. If there isn't any way for MacPerl to start a script when launched, the droplet option is probably the best buy, in terms of

[MacPerl] save as CGI

2001-11-14 Thread Ingo
Hi list, I would like to build a CGI for use with MacHTTP. I read that you don't need the CGI glue any more and that the current MacPerl simply saves as CGI. But, I don't get the CGI option in the "save as" menu, just "plain text", "runtime version" and "droplet". Do I need to install anything fi