in reply to Re^3: Handling returns from mkdir.
in thread Handling returns from mkdir.

On the system documented by this man page, mkdir can return the following:

Those constants are provided by Errno and via %!. Don't rely on the stringification except for display purposes, because that depends on the system's locale.