Index: pari-2.5.1/misc/tex2mail.in
===================================================================
--- pari-2.5.1.orig/misc/tex2mail.in	2012-02-06 23:06:22.000000000 +0100
+++ pari-2.5.1/misc/tex2mail.in	2012-02-06 23:08:49.000000000 +0100
@@ -21,9 +21,17 @@
 #	ignorefonts		# make math fonts (\mathfrak etc) into NOPs
 #	scissors		# Symbol to emit when a long line is cut
 
-eval 'require "newgetopt.pl";
-  &NGetOpt("linelength=i","maxdef=i","debug=i","by_par", "TeX",
-	   "ragged", "noindent", "ignorefonts", "scissors=s", "noflush")'
+use Getopt::Long;
+  &GetOptions("linelength=i" => \$opt_linelength,
+              "maxdef=i" => \$opt_maxdef,
+              "debug=i" => \$opt_debug,
+              "by_par" => \$opt_by_par, 
+              "TeX" => \$opt_TeX,
+	      "ragged" => \$opt_ragged, 
+              "noindent" => \$opt_noindent, 
+              "ignorefonts" => \$opt_ignorefonts, 
+              "scissors=s" => \$opt_scissors, 
+              "noflush" => \$opt_noflush)
     || warn "Errors during parsing command line options" .
 	($@ ? ": $@" : '') . ".\n";
 $linelength= $opt_linelength || 75;
