]> sjero.net Git - wget/blobdiff - doc/texi2pod.pl
texi2pod.pl: use the warnings module only when it is available.
[wget] / doc / texi2pod.pl
index 2b743cfb3efffaab3f2164b42561eb286227e059..57a8ac8fa1894fb4d7bcb15b1969b19e2a325985 100755 (executable)
@@ -23,6 +23,7 @@
 # something suitable for a manpage from a Texinfo document.
 
 use warnings;
+BEGIN { eval { require warnings; } and warnings->import; }
 
 $output = 0;
 $skipping = 0;