[rt-users] help with scrip

Violetta Wawryk v.wawryk at science-computing.de
Fri Oct 17 05:59:36 EDT 2008


Hi,

 >> > if ($self->TransactionObj->Type eq "Create" &&
 >> >   ($self->TicketObj->Subject !=~ /[P|p]roje[c|k]t: / ||
 >> >   $self->TicketObj->Subject !=~/[A|a]kut: / ) )
 >
 > I'm pretty sure that && is a higher precedence than ||, so the result
 > without parentheses would be the same as ( ( A && B ) || C ) instead of
 > ( A && ( B || C )) which is what you described.

I understand that now. Thank you. But I found out my scrip is not 
working because of the wrong regex.

$self->TicketObj->Subject !=~ /[A|a]kut: /  --> doesn't work
$self->TicketObj->Subject !~ /[A|a]kut: /  --> doesn't work

what would be the right expression to make it negative?

$self->TicketObj->Subject =~ /[A|a]kut: /  --> does work for positiv

Thanks
Violetta
-- 
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 





More information about the rt-users mailing list