how to check if each row has all columns defined matching headers in csv_xs perl
<p>I have requirement to check if each row in a csv file has all columns defined as per header even if no value it should be like '||' where '|' is seperator.
example:</p>

<p>EmpId|EmpName|EmpSalary|EmpDept -> Header</p>

<p>001|AAA|100|Dept1</p>

<p>002|BBB||Dept2 --> this row is valid even though Salary has no value</p>

<p>003|AAA|Dept1 ---> this row is invalid.</p>

<p>Since I am using CSV_XS (reading file into arrayOfHashes)for easier data manipulation, how do i check above scenario using CSV_XS where file has read into array of hashes.
Thanks - Kumar</p>