From: Zefram Date: Wed, 14 Apr 2010 12:05:57 +0000 (+0200) Subject: [perl #74038] c2ph (and pstruct) use the deprecated 'getopts.pl' library X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fb5f65e1f0e20e30098e798802868d892bd5086f;p=p5sagit%2Fp5-mst-13.2.git [perl #74038] c2ph (and pstruct) use the deprecated 'getopts.pl' library --- diff --git a/utils/c2ph.PL b/utils/c2ph.PL index 39545e3..9450400 100644 --- a/utils/c2ph.PL +++ b/utils/c2ph.PL @@ -369,13 +369,13 @@ $DEFINES = ''; $perl++ if $0 =~ m#/?c2ph$#; -require 'getopts.pl'; +use Getopt::Std qw(getopts); use File::Temp 'tempdir'; eval '$'.$1.'$2;' while $ARGV[0] =~ /^([A-Za-z_]+=)(.*)/ && shift; -&Getopts('aixdpvtnws:') || &usage(0); +getopts('aixdpvtnws:') || &usage(0); $opt_d && $debug++; $opt_t && $trace++;