Unfortunately we don't have Text::CSV installed, and I can't figure out why for the life of me. We're not permitted to install or use our own modules. It's a political battle that makes no sense and we always lose.
Looks like this works perfectly too, thanks to everyone for the responses!