Re: regexp not working past one character

2008-02-02 Thread John W. Krahn
[EMAIL PROTECTED] wrote: I have a program with a line like while () { if (/stuff/i) { print; } } When I run the program, and I replace "stuff" with only one character, like "d", it works exactly as I expect. But if instead of using "d", I use "da" or "date" (which I know are

Re: regexp not working past one character

2008-02-02 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I have a program with a line like while () { if (/stuff/i) { print; } } When I run the program, and I replace "stuff" with only one character, like "d", it works exactly as I expect. But if instead of using "d", I use "da" or "date" (which I know are

Re: regexp not working past one character

2008-02-02 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > I have a program with a line like while () { if (/stuff/i) { print; } } When I run the program, and I replace "stuff" with only one character, like "d", it works exactly as I expect. But if instead of using "d", I use "da" or "date" (which I know a

regexp not working past one character

2008-02-02 Thread PlagueMagazine
I have a program with a line like while () { if (/stuff/i) { print; } } When I run the program, and I replace "stuff" with only one character, like "d", it works exactly as I expect. But if instead of using "d", I use "da" or "date" (which I know are in FILE, because it's a te

Re: uninitialized value in printf

2008-02-02 Thread obdulio santana
Thaks listers, your comments helped a lot. everything was fixed. regards

Re: debugger questions

2008-02-02 Thread Peter Scott
On Fri, 01 Feb 2008 08:54:24 -0800, Tom Phoenix wrote: > If you're trying to access a lexical variable, though, you'll need to stop > the debugger somewhere within the scope of that lexical in order to access > it by name. That's easy to do with a breakpoint. ObPedantic: You can get at higher scop

Re: uninitialized value in printf

2008-02-02 Thread asmith
Hi John You'd make life easier for everyone if you prefixed each line of your program with the line number. The Linux command cat -n < file> will do that for you. Andrew in Edinburgh,Scotland John W. Krahn wrote: > obdulio santana wrote: >> I must mix 3 files, and produce a little report but in li