I have a scripting question.  I will admit that I am not very
familiar with Perl and its look-alikes, so I may be missing something fundamental.

I have this template for REPLIES.  I want to create a different
salutation based on the presence or non-presence of a dash ('-')
in the originator's name.

No matter what I do, the %IF always fails.  Note that in the
following I added some "debug" lines 

%SETPATTREGEXP='-'
--> echo the header information
--> %OFromFName
--> %OFromLName
--> pattern match
 %REGEXPBLINDMATCH='%OFromLName'
--> Did the match work?
--> %SUBPATT='0'
--> Yes it did


 %IF:"%SUBPATT='0'"='-':"Dear %OFromLName":"Hello %OFromFName "

At this point, the false branch is always used, whether or not there 
was a dash in the last name or not.

What am I missing?

Ed

________________________________________________________
Current Ver: 1.53d
FAQ        : http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]

Reply via email to