OK, I've looked all over the place and I can't seem to find anything that tells how to set one of Perl's global variables. I know how to get the value of $!, like this: SV *dbang = GvSV(gv_fetchpv("\041", TRUE, SVt_IV)); I can set $@ with sv_setiv(ERRSV, whatever); so how do I set $!? I can leave off the GvSV() and get a GV *, but how do I set it? I know the answer is probably on the first page of the Perl FAQ, but I just haven't seen it. Any help would be appreciated. Thanks, Mark