constant#

Look up a POSIX constant by name.

תקציר#

my $enoent = POSIX::constant("ENOENT");

מה מוחזר#

The integer or floating-point value of the named constant, or undef if the name is not known.

הבדלים מן ה-upstream#

Fully compatible with upstream POSIX. Ordinary code should import the constant by name rather than going through this accessor - it exists mainly for tooling and introspection.