"Thus the limits for Perl numbers stored as native integers would
typically be -2**31..2**32-1"
It's that "typically" bit that suggests I need to determine the limits myself!
I could ++/-- an integer scalar until I hit the limit, but that seems pretty naff.
I'm also guessing POSIX may have the limits defined, but I'd prefer not to use POSIX if possible.
Any suggestions?
In reply to How to portably determine integer limits? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |