in reply to Strange Behaviour with Backticks

What could possibly cause this erratic behaviour?

I doubt that it's erratic. The chomp() could be doing something that you didn't expect and don't want. What happens when you assign the output to a scalar instead of an array ?

Cheers,
Rob