I am new to Perl and trying to decode a Perl script which reads an Excel file and export the data into a text file. One of the steps in the script is performing weirdly. This is the step:
@array_name = grep {$_} @array_name;
如果值为 < code> 0 , 则此步骤仅略去最后一列, 否则它会正常工作 。 如果我删除了此步, 数值为 < code> 0 的最后一列就会返回, 但在我的摘录中包含一些不属于我源Excel 文件的假的 < code> NULLL 列 。
有人能帮我理解这个步骤吗?