Re: Problems referencing variable value in another loop

2007-06-17 Thread Rob Dixon
[EMAIL PROTECTED] wrote: Hi, I was able to parse different data in the same loop...however, now I'd like to extract data from two files, using two while loops after opening each .txt file...then do arithmetic with the data I extracted...all in the same script. The problem is that when I reference

Re: character encoding & regex

2007-06-17 Thread Dr.Ruud
Tom Allison schreef: > I don't require actual character comparison, comparison of \{263a} is > sufficient. A Perl string contains characters (not octets). The codepoint U+263a is represented by the character "\x{263a}". Whether that takes 1 or 2 or 3 or even more octets in the string, shouldn't m

Re: Unable to reference variable from one loop to another in same script

2007-06-17 Thread Tom Phoenix
On 6/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The problem is that when I reference a variable in the second while loop that I initialized in the first while loop, the script doesn't recognize it. You need to assign to a variable from an outer scope while executing the inner scope. T

Re: character encoding & regex

2007-06-17 Thread Tom Allison
I got somewhere with this: From: =?Big5?B?obS2Uq/5r3Wk6KtLLLKjpmGqvbBl?= <> translates to From: \\{a1}\\{b4}\\{b6}R\\{af}\\{f9}\\{af}u\\{a4}\\{e8}\\{ab}K,\\{b2} \\{a3}\\{a6}a\\{aa}\\{bd}\\{b0}e <> which still means nothing to me. But at least I can pick it apart, I think. I want to match ev

Re: character encoding & regex

2007-06-17 Thread Tom Allison
On Jun 17, 2007, at 6:14 AM, Dr.Ruud wrote: Tom Allison schreef: I'm trying to do some regular expression on strings in email. They could be encoded to something. But I can't tell because I don't have a utf8 unicode xterm window that will show me anything. There are more simple ways to fi

Re: Problems referencing variable value in another loop

2007-06-17 Thread Paul Lalli
On Jun 16, 4:08 pm, [EMAIL PROTECTED] wrote: > The problem is that when I > reference a variable in the second while loop that I initialized in > the first while loop, the script doesn't recognize it. To be more > clear, there is a number value for $SLPdataSFO[6] that I extracted in > the first

Unable to reference variable from one loop to another in same script

2007-06-17 Thread shadkeene
Hi, I'm able to parse different data in the same loop...however, now I'd like to extract data from two files, using two while loops after opening each .txt file...then do arithmetic with the data I extracted. The problem is that when I reference a variable in the second while loop that I initialize

Re: character encoding & regex

2007-06-17 Thread Dr.Ruud
Tom Allison schreef: > I'm trying to do some regular expression on strings in email. They > could be encoded to something. But I can't tell because I don't have > a utf8 unicode xterm window that will show me anything. There are more simple ways to find out, see charnames and perlunitut. http://

Problems referencing variable value in another loop

2007-06-17 Thread shadkeene
Hi, I was able to parse different data in the same loop...however, now I'd like to extract data from two files, using two while loops after opening each .txt file...then do arithmetic with the data I extracted...all in the same script. The problem is that when I reference a variable in the second w

Re: value of variable switches from ' ' to 'value'

2007-06-17 Thread Mathew Snyder
Mumia W. wrote: > On 06/17/2007 12:36 AM, Mathew Snyder wrote: >> [...] >> In the debugger I've set the 'w' command to watch the variable >> containing the >> day being looked for ($day). I would have thought $day stays the same >> throught >> an iteration of the while loop but the debugger keeps

Re: value of variable switches from ' ' to 'value'

2007-06-17 Thread Mumia W.
On 06/17/2007 12:36 AM, Mathew Snyder wrote: [...] In the debugger I've set the 'w' command to watch the variable containing the day being looked for ($day). I would have thought $day stays the same throught an iteration of the while loop but the debugger keeps stopping to tell me it switched fr