in reply to Re^2: Writing SNMP walk to CSV file
in thread Writing SNMP walk to CSV file

unless the code is buggy, replace the section in your code that this replaces, beginning with the foreach. It should work.