![]() |
|
We don't bite newbies here... much | |
PerlMonks |
$! or &Errno or $!{}by tadman (Prior) |
on Mar 20, 2001 at 22:05 UTC ( #65765=perlquestion: print w/replies, xml ) | Need Help?? |
tadman has asked for the wisdom of the Perl Monks concerning the following question:
Inside of IO::Socket.pm, there is some rather unruly looking
Perl in the connect() routine. In particular $! is used
as a hash, implying that there is something called %!,
which in fact seems to exist (according to 'perl -w' anyway).
if ($timeout && $!{EINPROGRESS}) { # ...
It's bizarre enough that $! behaves differently in a
string context versus a numeric one, but now it has some
sort of hidden "hash" context?
Back to
Seekers of Perl Wisdom
|
|