If I am understanding your question correctly, yes, you can use CGI.pm to do this. Just do:
$q->param('DELIVERMESSAGE') where
$q is the instance of CGI. That will give you the value of DELIVERMESSAGE (in the example below, it would be "bar"), if you are using it as
www.foo.com/MyScript.cgi?DELIVERMESSAGE=bar
As for the Comms-Branch bit, I'm not sure either, are you using any sessions or cookies?
dhoss
"and I wonder, when I sing along with you if everything could ever feel this real forever? if anything could ever be this good again? the only thing I'll ever ask of you, you've gotta promise not to stop when I say 'when'", she sang