Hi, I have different scrips that check for certain words in the subject line and the code looks for example like that:
if ($self->TransactionObj->Type eq "Create" && $self->TicketObj->Subject =~ /[A|a]kut: / ) --snip-- so, if the subject contains "akut" do something. That works. What I now want to do is, if the subject contains not "akut" or "project" than do that.... my code looks like this: if ($self->TransactionObj->Type eq "Create" && $self->TicketObj->Subject !=~ /[P|p]roje[c|k]t: / || $self->TicketObj->Subject !=~/[A|a]kut: / ) --snip-- and that doesn't work. I am not an perl expert, maybe someone can tell me where my thinkingproblem is? Thanks in advance Violetta -- ________________________________ creating IT solutions Violetta J. Wawryk science + computing ag IT-Service Hagellocher Weg 73 phone +49 7071 9457 282 72070 Tuebingen, Germany fax +49 7071 9457 211 www.science-computing.de -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Florian Geyer, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Prof. Dr. Hanns Ruder Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
