Help for this page
$SIG{INT} = sub { cleanup(); die "Caught interrupt"; }; ... $Book->Close(); $Excel->Quit(); }