History

doc/texi2pod: add "use warnings" directive

The script was previously run with perl -w through the shebang command. Now that the script is executed through direct perl invocation the -w in the shebang command is ignored. This patch re-enables "use warnings" whatever way the script is invoked.

Stefano Sabatini committed 14 years ago

Commit 32393821 parent 118bd601 file · +3 −1Browse files

Unified · Split

doc/texi2pod.pl+3−1
@@ -1,4 +1,4 @@
1−#! /usr/bin/perl -w
1+#! /usr/bin/perl
22
33 # Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
44
@@ -23,6 +23,8 @@ · 18 unmodified lines
2323 # markup to Perl POD format. It's intended to be used to extract
2424 # something suitable for a manpage from a Texinfo document.
2525
26+use warnings;
27+
2628 $output = 0;
2729 $skipping = 0;
2830 %sects = ();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t