in reply to idiom question

I see an unclosed double-quoted string, beginning just before "found". I'm guessing this would be a syntax error if submitted to Perl; so presumably this code snippet isn't exactly what you're really trying to run?

Guessing that the close quote is supposed to go before the "if"...

I think you have a precedence problem. Trying to use the "and" to string two statements under control of the if statement-modifier always makes my head hurt when I try it, so if I actually want to control two statements, I use a real if. I'll bet if you do that, it does what you expect.

Replies are listed 'Best First'.
Re: Re: idiom question
by geektron (Curate) on Jan 18, 2004 at 07:21 UTC
    yes, the missing quote was just a typo. the real code is at work. i was going from memory.