Help for this page
open HTML, ">$basepath/$basename.html";
$foo = "$basepath"."$basename.html"; open HTML, ">foo" or die "Can't open $foo: $!";