perl -d file.pl >& errors.txt #### perl -d file.pl |& more