while digging through Generic.pm I found that a construct like

<dtl if ($Data{"Body"} =~ "/http:/m") { $Data{"LinkPresent"} = "Yes"; }>

should be possible. In practice it is not. I found the reason why this
doesn't work (and resolved it). Then I was looking for a way to also be
able to handle substitution text like:

<dtl if ($Data{"Body"} =~ "/http:(.*)/m") { $Data{"LinkText"} = "$Data{"Match1"}"; } >

This almost works but I still have some nasty bugs.

Now my question:

In Generic.pm there is a (for me) somewhat strange construct:

$Line =~ s{ subt pattern
                  }
                  {
                      code
                  }egx;

I cannot find the syntax description of this construct ( I am talking about the use of 
curly braces in this context). I am suspecting, that I am trying to do something, that 
is
not allowed in this context, but I would need to read more about it. I would kindly 
ask 
if someone could point me to a place whereI can learn more about this.

Thank you,
Roland



_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to