mirror of
https://github.com/curl/curl.git
synced 2026-07-27 03:27:15 +03:00
test1276.pl: enable strict/warnings, fix them
This commit is contained in:
parent
5bd42f479f
commit
8323768234
1 changed files with 4 additions and 1 deletions
|
|
@ -23,13 +23,16 @@
|
|||
#
|
||||
###########################################################################
|
||||
|
||||
use strict;
|
||||
use warnings 'FATAL' => 'all';
|
||||
|
||||
sub showline {
|
||||
my ($l) = @_;
|
||||
$l =~ s/([^\x20-\x7f])/sprintf "%%%02x", ord $1/eg;
|
||||
return $l;
|
||||
}
|
||||
|
||||
my $root = $ARGV[0];
|
||||
my $root = $ARGV[0] || '..';
|
||||
|
||||
open(my $fh, "-|", "perl $root/lib/optiontable.pl < $root/include/curl/curl.h");
|
||||
binmode $fh;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue