The difference is in the subs' prototypes,
The expression 1 + CHAR_MAX works as expected for either constant or POSIX.$ perl -Mconstant=CHAR_MAX,127 -e'print defined(prototype "CHAR_MAX")? +"Yes\n":"No\n"' Yes $ perl -MPOSIX=CHAR_MAX -e'print defined(prototype "CHAR_MAX")?"Yes\n" +:"No\n"' No $
After Compline,
Zaxo
In reply to Re: Beware of POSIX constants
by Zaxo
in thread Beware of POSIX constants
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |