Help for this page
open( FH, ">/some/path/debug.txt" ) or die "can't write debug.txt: $!" +; ... print FH "Num = $Num\n"; # do other things... }