use Devel::Peek; Dump $string_you_want_to_write_to_excel_file;