develooper Front page | perl.perl5.porters | Postings from August 2017

my_strerror() as API function

Thread Next
From:
Zefram
Date:
August 12, 2017 10:54
Subject:
my_strerror() as API function
Message ID:
20170812105354.GU9383@fysh.org
With commit ec268cc8df7c7a90811a099d422eef6a31bf9f8b, between 5.27.1
and 5.27.2, my_strerror() was removed from the public API.  I think this
was a mistake and it should be restored.  It provides a useful facility
that's otherwise difficult to achieve: errno-based messages that are
responsive to "use locale" in the same way as $!.  I use it for this
purpose in the CPAN module Hash::SharedMem, and its withdrawal from the
public API breaks its intended behaviour of matching $!.

-zefram

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About