Sorting to multiple queues

Hello,

I’m trying to get a customs script to work, based on http://requesttracker.wikia.com/wiki/SetOwnerAndQueueBySubject but difference is that I need to check for something like: my $match = “/(Foo1|Foo2)/”; and after this manage to move it to queue X or Y. Unfortunately my perl skills is not at all close to fix this.

Anyone have any suggestion on how to do this?

Regards, Joel