Don't ask to ask, just ask | |
PerlMonks |
Re: Test if list is rangeby LanX (Saint) |
on Sep 29, 2012 at 11:33 UTC ( [id://996364]=note: print w/replies, xml ) | Need Help?? |
please use <code> tags! 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 Section
Seekers of Perl Wisdom
|
|