oacs_util::csv_foreach (public)

 oacs_util::csv_foreach -file file [ -header_line header_line ] \
    [ -override_headers override_headers ] -array_name array_name \
    code_block

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Reads a CSV string and executes code block for each row in the CSV.

Switches:
-file (required)
the CSV file to read.
-header_line (optional, defaults to "1")
the line with the list of var names
-override_headers (optional)
the list of variables in the CSV
-array_name (required)
the name of the array to set with the values from the CSV as each line is read.
Parameters:
code_block (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_csv_foreach csv_foreach (test acs-tcl) oacs_util::csv_foreach oacs_util::csv_foreach test_csv_foreach->oacs_util::csv_foreach

Testcases:
csv_foreach
[ show source ]
Show another procedure: