in reply to Problems with references?

Maybe you should use Data::Dumper to get a look at the suspect, @records. The code you've shown above ought not be capable of hanging the system without emitting a warning, but nevertheless, it could be helpful to take a look and see if the contents of @records is what you expect it to be.


Dave


"If I had my life to do over again, I'd be a plumber." -- Albert Einstein