Hi Guys,
I tried this code. At first I thought it was working fine. But now I see that there is a small problem with this code.
The problem is : the index is circular (semi circular I guess). That means, if my array is @a = {"a", "b", "c", "d", "e"} and I want to find the element before "a", it should be undefined. But when I print the element before "a" using the above method and (defined $array
$index -2), I get "e".
Also, it is strange that when I check like: if (defined $array
$index +2), that element is correctly not defined.
If you understand this problem, please help me out.
Thanks