I am developing a script in perl that interacts with this soap and i am having problems with the login method. If someone has used perl, could they let me have a look at their script please?

I think i must be doing the hmac_hash in a wrong way as i always seem to be getting an invalid api key, here is how i am currently creating a hash:

use Digest::SHA qw(hmac_sha256_base64);
my $data = $time_stamp .';'.$domain_name.';'.$nonce.';user.login'; #return $data;
$hash = hmac_sha256_base64($str, '6dab09bb08233956c78349ea251699e3');

The reason i am using _base64 is because otherwise the result is some characters with letters/numbers and my login method then moans because it is expecting a string.