use CGI::Carp(fatalsToBrowser); #### open(LOCAL, ">$dir/$name") or print $!;