Hi,<div><br></div><div>I just thought I'd post this for the next person who needs it.  I had a hard time getting the escaping correct when running on strawberry perl under windows.</div><div><br></div><div>perl -na -F/"\|"/ -e "print $#F,\"\n\" " some_data_file.txt</div>

<div><br></div><div>read a file, autosplit on '|', print the count of fields</div><div><br></div><div>Jay</div><div><br></div><div>keywords: autosplit windows M$ MSFT strawberry</div><div><br></div><div> </div>