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
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
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.
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
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
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