Originally Posted by ashok.g
Actually, I am expecting a predefined function to serve this purpose like if am trying to access an array element which will reside beyod my limit I should be warned.
Anyway,Thanks for your reply.
Happy Posting... Bye.....
Perl's arrays are deliberately without limits of this kind. In most cases, it makes them much easier to work with.
So, I don't know of a predefined function that will work the way you want - at least, not one predefined by Perl itself. However, you can always create your own function if you like and set whatever limits you want there.
Let me ask a different question though: why do you think you need this? What sorts of cases are you worried about, or what problems are you running into? I suspect you think you need a limitation that you don't really need.