On Monday 29 December 2003 01:36 pm, Randy W. Sims wrote: > On 12/29/2003 4:54 PM, Beau E. Cox wrote: > > Hi - > > > > Does anyone know where access to the perl special variables > > ($!, $@, $/, etc.) from c-code is documented? I can't seem > > to find any mention in the perl pods (guts, call, api, etc.)? > > > > Aloha => Beau; > > These things are not as accessible as one would wish: > > ERRNO in ?, ERRSV in perlcall and section "Warning and Dieing" in > perlapi, PL_rs in perlintern. > > > Regards, > Randy.
Thanks Randy - For example, I am sucessfully using: SV *ERRNO = get_sv( "!", TRUE ); printf( "error number is %d\n", SvIV( ERRNO ) ); printf( "error string is %s\n", SvPV_nolen( ERRNO ) ); ... All global special varibales are now at my fingertips! Alpha => Beau; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>