Applying a CustomField to a queue in perl

I’m at a loss!

I’ve created my custom field, i’ve given various groups rights to it,
but i can’t apply it to a queue, either individually, or global.

I think i have the right method:

$CFObj->AddToObject($QueueObj)

but nada.

How can i “apply” the CF to a queue, and how to apply globally to all
queues?

thanks!

w.

Richard Wood (Woody)
Managing Director
Wild Thing Safaris Ltd.

UK: 2B Habbo St, Greenwich, London
Dar es Salaam: 5 Ethan St, Mbezi beach
Arusha: 3 Ebeneezer Rd, Njiro
PO BOX 34514 DSM
Office: +255 (0) 222 617 166
Office Mobile: +255 (0) 773 503 502
Direct: +255 742 373 327
Skype: woody1tz