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 -w1#! /usr/bin/perl
2 2
3# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.3# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
4 4
@@ -23,6 +23,8 @@ · 18 unmodified lines
23# markup to Perl POD format. It's intended to be used to extract23# markup to Perl POD format. It's intended to be used to extract
24# something suitable for a manpage from a Texinfo document.24# something suitable for a manpage from a Texinfo document.
25 25
26use warnings;
27
26$output = 0;28$output = 0;
27$skipping = 0;29$skipping = 0;
28%sects = ();30%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