$c = -64 and $d=19683 and calculuate gc($c,$d)?
$a and $b have special meanings in perl for historical reasons. I think we've prevented unexpected behavior in PG code when using these variables but just in case try using $c and $d instead and see if the behavior changes.
-- Mike