Re: Ternary Regex Evaluation

2002-07-12 Thread John Pitchko
ating over every line, and constantly replacing $title with each pass... Maybe add this below the $title=m/...: last if($title ne $content); Shawn - Original Message - From: "John Pitchko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 08, 2002 1

Re: Ternary Regex Evaluation

2002-07-12 Thread Shawn
CTED]> Sent: Monday, July 08, 2002 11:57 AM Subject: Ternary Regex Evaluation Hello, I am trying to do some pattern matching in a ternary evaluation, but it does not seem to work. If I place the regex into a structured if statement, it evaluates fine, but not in a ternary evaluat

Re: Ternary Regex Evaluation

2002-07-08 Thread fliptop
John Pitchko wrote: > Yes that would work, but I was really curious as to why the ternary > operation does not work. In fact, none of my other ternary operations > seem to work. Is there something wrong with my syntax? probably. try putting each true/false statement inside a parenthesis.

Re: Ternary Regex Evaluation

2002-07-08 Thread John Pitchko
ko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002 12:57 AM Subject: Ternary Regex Evaluation Hello, I am trying to do some pattern matching in a ternary evaluation, but it does not seem to work. If I place the regex into a structured if statement, it evalua

Re: Ternary Regex Evaluation

2002-07-08 Thread Connie Chan
Sent: Tuesday, July 09, 2002 12:57 AM Subject: Ternary Regex Evaluation Hello, I am trying to do some pattern matching in a ternary evaluation, but it does not seem to work. If I place the regex into a structured if statement, it evaluates fine, but not in a ternary evaluation. Here is wh

Ternary Regex Evaluation

2002-07-08 Thread John Pitchko
Hello, I am trying to do some pattern matching in a ternary evaluation, but it does not seem to work. If I place the regex into a structured if statement, it evaluates fine, but not in a ternary evaluation. Here is what I have so far. my $title; .. .. .. open FH, HTML_HOME . $directory . $cont