only functions i use with this part of code are getters for my objects, and they are working fine in other parts of code, so i don't think they are the problems...
only other thing that could be wrong (or at least i don't have idea what else could interfere with this) is my sorting subroutine... but it's too simple to be wrong (or is it?)...
i did tieing like this:
tie @open, "Tie::Array::Sorted", sub { $_[0]->f <=> $_[1]->f };
that function (f) is just another getter for my objects... also works fine in the rest of the code... subroutine is almost exactly as one in description of Tie::array::sorted on CPAN...
code is pretty big so i'd like to avoid posting it here because i don't think anything outside this block of code (except those functions i mentioned) could mess things up... :/
if you have some idea where i could look for errors, it would be really helpfull... :)
p.s. now i see it could be the ::sorted part that i should have mentioned earlier... :$