Attached is a Perl script I wrote to do this using the ACS CGI interface. It was designed to parse the CSV file from LMS' Devices not in ACS report, but it should work on any CSV file.
Rename the script acsimport.pl, then run acsimport.pl -h to get a list of options.