in reply to Stupid @ARGV question
are you doing a pop @ARGV to get items, if so, that would explain it. In that case you should use shift instead.
- Ant