Use “\n” though also set text wrap.

[perl]

my $format = $workbook->add_format();

$format->set_text_wrap() ;

[/perl]