Copying data into a study table

I'm trying to export 2 columns of data (one energy, another structures from polymorph predictor), within a range, into a new study table. I'm trying to automate the process to stop the massive delay involved in using copy+paste on large study tables.  I can create two lists in perl, and create a new study table with the correct columns but I'm stumbling at the copying over stage. Can the API functions work on standard lists? Or do they need to be "collections" if so how can I create/change my lists into collections? I've attached a copy of my script below. Any help is much appreciated!