You can set $! from C, but you should probably only do so under very limited circumstances. $! is tied directly to the C macro errno which is almost exclusively used for IO errors. Look it up. Note that errno is a number.
In reply to Re: Propagating errors in C code to Perl
by Joost
in thread Propagating errors in C code to Perl
by missingthepoint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |