No, there is (unfortunately) no range datatype, the range operator does only create a list in list context.
If you need ranges as types , consider creating an object or tie handling the behavior you want.
You could also try one of the cpan modules for ranges.
Cheers Rolf
In reply to Re: Test if list is range
by LanX
in thread Test if list is range
by DeepThought
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |