in reply to Typekey API

You don't have warnings turned on, which means you're not going to be warned about all the undefined variables on this line:
my $sig_msg = "$email::$name::$nick::$ts::$t"; # this is the message +to be signed.
Perl reads that as:
my $sig_msg = $email:: . $name:: . $nick:: . $ts:: . $t;
because "::" is the package separator an it is legal to have a variable with an "empty" name like $foo:: (the "" scalar in package 'foo'). I suggest replacing the line with
my $sig_msg = join "::", $email, $name, $nick, $ts, $t;
and turning warnings on, too. Apart from this, I don't know what to tell you about your problem.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^2: Typekey API
by Anonymous Monk on May 30, 2006 at 18:01 UTC
    Thanks! I didn't know about the problem with using :: inside quotes. Shouldn't you have the same problem in with the join statement?

    Anyway after making this change the script runs find even using warnings. However, I'm still getting the exact same error with MT. So it still doesn't like what I'm sending it. :(