From: Steffen Mueller Date: Wed, 2 Sep 2009 18:02:47 +0000 (+0200) Subject: Deprecate getopts.pl with a warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2205927600c994e44473e01566456d5f896fdb5e;p=p5sagit%2Fp5-mst-13.2.git Deprecate getopts.pl with a warning --- diff --git a/lib/getopts.pl b/lib/getopts.pl index e30820a..ec1012a 100644 --- a/lib/getopts.pl +++ b/lib/getopts.pl @@ -7,7 +7,11 @@ # programming techniques. # # Suggested alternatives: Getopt::Long or Getopt::Std -# + +warn( "The 'getopts.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl. Please use the" + . " Getopt::Long or Getopt::Std module instead." ); + ;# Usage: ;# do Getopts('a:bc'); # -a takes arg. -b & -c not. Sets opt_* as a ;# # side effect.