start your search here errno, errno -> Errno::AnyString - put arbitrary strings in $!
magic, magic -> Variable::Magic - Associate user-defined magic to variables from Perl.
You'll realize that these magic variables look a lot like tied variables. It is not surprising, as tied variables are implemented as a special kind of magic, just like any 'irregular' Perl variable : scalars like $!, $( or $^W, the %ENV and %SIG hashes, the @ISA array, vec() and substr() lvalues, threads::shared variables... They all share the same underlying C API, and this module gives you direct access to it.
t's nearly impossible to manually decode('UTF-8') in each and every place we get $! -
Should have used an abstraction :) errno(), "@{[errno()]}", @{[int errno()]}
In reply to Re: encoding for $!
by Anonymous Monk
in thread encoding for $!
by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |