in reply to var string not printing correctly

Your $server and $actionid strings are probably terminated by "\n".

Try to "chomp" them before using in this .

print "Server->$server<-\n";

                Memory fault   --   brain fried

Replies are listed 'Best First'.
Re^2: var string not printing correctly
by TonyNY (Beadle) on Jun 30, 2018 at 23:13 UTC
    $actionid was the one giving me the problem, chomped it now I'm good to go, thanks NetWallah!
Re^2: var string not printing correctly
by TonyNY (Beadle) on Jun 29, 2018 at 11:31 UTC

    Thanks NetWallah. I tried the string with the server and actionid vars entered in manually but still got the same result.