in reply to how to print text + array values at same time
You appear to be printing to a file handle... do you realize that your output won't be displayed in your terminal?