queue name parsing in QueueLookup()

26 Mar
2008
26 Mar
'08
10:23 a.m.
Hi, I use QueueLookup(Queue => $MyNewQueueName) to check whether a queue already exists. If it does not exist yet, then I call QueueAdd(). But QueueAdd() modifies $Param{Name} and removes trailing white space. So I'd suggest that QueueLookup() behaves in the same way, eg. adding the following lines right after the "check needed stuff" block: if ($Param{Queue}) { $Param{Queue} =~ s/(\n|\r)//g; $Param{Queue} =~ s/\s$//g; } Regards, Felix
6353
Age (days ago)
6353
Last active (days ago)
0 comments
1 participants
participants (1)
-
Felix J. Ogris