Browse Source

doc: Try to find nonstandard Perl path from the environment

Diego Biurrun 12 years ago
parent
commit
7b05845b15
1 changed files with 3 additions and 1 deletions
  1. 3 1
      doc/texi2pod.pl

+ 3 - 1
doc/texi2pod.pl

@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#!/usr/bin/env perl
 
 #   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 
@@ -23,6 +23,8 @@
 # markup to Perl POD format.  It's intended to be used to extract
 # something suitable for a manpage from a Texinfo document.
 
+use warnings;
+
 $output = 0;
 $skipping = 0;
 %sects = ();