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

Do I do it like this?
open (NODES, "<$nodes") or die "could not open nodes file $nodes"; + close NODES; open (CSV, ">$csv") or die "could not open scv file $csv"; $tmp = join(",",@columns); close CSV; print CSV "$tmp\n"; while (<NODES>) { chop;

Replies are listed 'Best First'.
Re^5: Writing SNMP walk to CSV file
by runrig (Abbot) on Sep 22, 2005 at 20:04 UTC
    No, close the files when you are done reading from or writing to the files.