Problem with objects

2004-01-23 Thread wren argetlahm
I've come up with an idea for an object oriented module and am making it in order to learn a bit more about objects and OOP. I've run into a strange problem that I can't figure out why what's happening is happening. I'm trying to copy part of a data structure from one position in the object to

Re: Problem with objects

2004-01-23 Thread Thilo Planz
print %{$this-{'alphabet'}{$segments[$i]}}; $this-{'segment'}[$i] = %{$this-{'alphabet'}{$segments[$i]}}; For some reason the %{$this-...} returns what it should in the print statement (namely a list of a key and a hash reference) but in the = statement it always returns the string 1/8. It

Generating a temp file in a web app

2004-01-23 Thread Adam Witney
Hi all, This is probably not a mac specific perl problem, but I have a web app that fires off a perl script which generates a temporary pdf file and then emails it to the user. I have been using this syntax: my $temp_pdf = /tmp/reg_form$$.pdf; to name the temporary pdf file... Is this a safe

Re: Generating a temp file in a web app

2004-01-23 Thread Neil Bowers
This is probably not a mac specific perl problem, but I have a web app that fires off a perl script which generates a temporary pdf file and then emails it to the user. I have been using this syntax: my $temp_pdf = /tmp/reg_form$$.pdf; to name the temporary pdf file... Is this a safe way to

Re: tricky parsing question

2004-01-23 Thread Bill Stephenson
wren, You need to get a book on regex's. Perl.com has the best available, Mastering Regular Expressions is what you want. Sounds like a formidable task though. For some additional help with your regex you can play with a tool posted on the perlhelp.com web site. Go to Resources and look for

Re: tricky parsing question

2004-01-23 Thread Bill Stephenson
Well, both the problem and the project are way over my head, but it looks to me like something that will only be solved with brute force. I think if your string is split into words and the segments are sorted longest to shortest, alphabetically, then your could sort words by the first letter

Unicode 16 (UTF-16) and perl

2004-01-23 Thread manu chao
Hi, this was probably too much hidden in my reply, but saving a file in UTF-16 (as opposed to UTF-8) created the following error for me: [:~/Desktop] xx% chmod 755 helloWorld.pl [:~/Desktop] xx% ./helloWorld.pl ./helloWorld.pl: Exec format error. Binary file not

Re: tricky parsing question

2004-01-23 Thread David Cantrell
On Thu, Jan 22, 2004 at 09:28:30PM -0800, wren argetlahm wrote: --- Bill Stephenson [EMAIL PROTECTED] wrote: You need to get a book on regex's. I know the solution lies in regex's I don't. I expect the code would be a lot clearer and considerably quicker if you pull your strings apart using

Using challenge-response systems for mailing lists

2004-01-23 Thread David Cantrell
I just received this: I am an automated email sentry designed to protect against unwanted email. You recently sent an email titled 'Re: tricky parsing question' to 'macosx'. ... http://www.maxstrengthmail.com/quarantine/release?emailid=112.20040123-050514.001.601258ask=yes Just click the

Re: Using challenge-response systems for mailing lists

2004-01-23 Thread David Cantrell
On Fri, Jan 23, 2004 at 01:44:58PM +, David Cantrell wrote: I just received this: I am an automated email sentry designed to protect against unwanted email. You recently sent an email titled 'Re: tricky parsing question' to 'macosx'. ... Amusingly, this message also triggered the broken

Re: xterm color support

2004-01-23 Thread Robin
Oddly enough I was just looking into ANSI escapes for the mud I was banging on about in another thread and came to the conclusion Why use a module when you can just pepper your text with ANSI escape codes? : ANSI Color Codes in brief: 0to restore default color 1

Re: tricky parsing question

2004-01-23 Thread Wiggins d Anconia
On Thu, 22 Jan 2004, wren argetlahm wrote: snip Maybe Parse::RecDescent? Maybe I'm over-thinking this... This is what I thought of immediately, an old but excellent article maybe a good place to start: http://search.cpan.org/src/DCONWAY/Parse-RecDescent-1.94/tutorial/tutorial.html

Re: Using challenge-response systems for mailing lists

2004-01-23 Thread Chris Devers
On Fri, 23 Jan 2004, David Cantrell wrote: Amusingly, this message also triggered the broken software. Funny, my message yesterday didn't trigger it. Maybe it's someone that just subscribed? That or someone just thinks you're Evil, and need to be tortured :) -- Chris Devers

Re: xterm color support

2004-01-23 Thread Wiggins d Anconia
Oddly enough I was just looking into ANSI escapes for the mud I was banging on about in another thread and came to the conclusion Why use a module when you can just pepper your text with ANSI escape codes? : Readability? Why use a module for anything? Note the implmentation of ANSI

DBD mysql unable to install since Panther

2004-01-23 Thread Joseph Alotta
Greetings, Since we upgraded to Panther, we have been unable to install the BDB module and the mysql module or even the Date::Simple module. My buddy Dennis, is an serious hacker, and he was here till the wee hours of the morning trying to make it work and was unable. He even tried to compile

Re: DBD mysql unable to install since Panther

2004-01-23 Thread Morbus Iff
Are any of you running Panther with these modules? Yes. This has been talked about on the archives a lot, and I recently published a step-by-step in MacTech magazine (with a shout out to this list). Your best bet: check the archives. -- Morbus Iff ( i put the demon back in codemonkey ) Culture:

Re: tricky parsing question

2004-01-23 Thread Chris Devers
On Thu, 22 Jan 2004, wren argetlahm wrote: --- Rick Measham [EMAIL PROTECTED] wrote: Wren, when you say 'segments' it appears you mean phonemes or phonetics. Yeah, I do mean phonemes (or something like it). The module is language independent, but I'll check those modules out. That's

Re: xterm color support

2004-01-23 Thread Robin
On Saturday, January 24, 2004, at 12:18 am, Wiggins d Anconia wrote: Readability? Why use a module for anything? It's not exactly rocket science to understand the escapes and seriously, using a print for each and every escape code format ? Expensive much? And what about situations where you

Re: Using challenge-response systems for mailing lists

2004-01-23 Thread Brian McNett
On Friday, January 23, 2004, at 06:46 AM, Chris Devers wrote: On Fri, 23 Jan 2004, David Cantrell wrote: Amusingly, this message also triggered the broken software. Funny, my message yesterday didn't trigger it. Maybe it's someone that just subscribed? That or someone just thinks you're

Re: Generating a temp file in a web app

2004-01-23 Thread Jeremy Mates
* Adam Witney [EMAIL PROTECTED] my $temp_pdf = /tmp/reg_form$$.pdf; to name the temporary pdf file... Is this a safe way to approach the problem. This will not be a heavily used app... But I wouldn't want one persons pdf to be sent to another user.. Writing temporary files under /tmp using

Re: xterm color support

2004-01-23 Thread Wiggins d Anconia
On Saturday, January 24, 2004, at 12:18 am, Wiggins d Anconia wrote: Readability? Why use a module for anything? It's not exactly rocket science to understand the escapes and seriously, using a print for each and every escape code format ? Expensive much? And what about situations

Re: xterm color support

2004-01-23 Thread Robin
On Saturday, January 24, 2004, at 12:18 am, Wiggins d Anconia wrote: ---snip-- as we seem to be adding nothing to the discussion I suggest we take this off list Robin

XML::Parser

2004-01-23 Thread Richard Cook
Can anyone here offer step-by-step for installing XML::Parser ? I've run into trouble with the expat-1.95.7 install ... and think I should revert to 1.95.6. I'd like to do a clean install of expat and XML::Parser, without doing a clean install of OS 10.2.8 ... -Richard

Re: XML::Parser

2004-01-23 Thread Chris Devers
On Fri, 23 Jan 2004, Richard Cook wrote: Can anyone here offer step-by-step for installing XML::Parser ? I've run into trouble with the expat-1.95.7 install ... and think I should revert to 1.95.6. Step one: % sudo fink -y install xml-parser-pm Step two: There is no step two.

Re: Problem with objects

2004-01-23 Thread wren argetlahm
--- Thilo Planz [EMAIL PROTECTED] wrote: It is a problem of context. That's what I figured, but I wasn't sure off-hand how. Thanks for the insight (you too Charlie). I had it set up as $scalar=$ref initially but that introduced some major problems that took a while to hunt down-- namely that it

Re: Perl/MacPerl on MacOS X

2004-01-23 Thread AWLeverenz
do shell script perl /tmp/junk.pl -- = Hello I'm afraid I don't have a handle on the Mac OS Extended file system. When you make the do shell call in Script Editor, as you demonstrated, where is the origin of the filepath? I'm not successful with SE locating my perl file, which located on

Re: Perl/MacPerl on MacOS X

2004-01-23 Thread Doug McNutt
At 16:59 -0500 1/23/04, [EMAIL PROTECTED] wrote: do shell script perl /tmp/junk.pl -- = Hello I'm afraid I don't have a handle on the Mac OS Extended file system. When you make the do shell call in Script Editor, as you demonstrated, where is the origin of the filepath? I'm not successful with

Re: Perl/MacPerl on MacOS X

2004-01-23 Thread John Delacour
At 4:59 pm -0500 23/1/04, [EMAIL PROTECTED] wrote: do shell script perl /tmp/junk.pl -- = Hello I'm afraid I don't have a handle on the Mac OS Extended file system. When you make the do shell call in Script Editor, as you demonstrated, where is the origin of the filepath? I'm not successful

Re: tricky parsing question

2004-01-23 Thread wren argetlahm
--- Chris Devers [EMAIL PROTECTED] wrote: Do you need to handle ambiguities? For example, -ough can famously be pronounced several ways: The way it's set up now can't deal with them, but I'm about to rewrite the thing to handle more than one segment having the same orthographic representation.