From: Steffen Mueller Date: Wed, 2 Sep 2009 21:04:23 +0000 (+0200) Subject: Deprecate stat.pl with a warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0adf28fd674e657e95574d21ee920ad02ac21e92;p=p5sagit%2Fp5-mst-13.2.git Deprecate stat.pl with a warning --- diff --git a/lib/stat.pl b/lib/stat.pl index c6682b9..a84b0ac 100644 --- a/lib/stat.pl +++ b/lib/stat.pl @@ -1,8 +1,15 @@ +;# This legacy library is deprecated and will be removed in a future +;# release of perl. +;# ;# Usage: ;# require 'stat.pl'; ;# @ary = stat(foo); ;# $st_dev = @ary[$ST_DEV]; ;# + +warn( "The 'stat.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl." ); + $ST_DEV = 0 + $[; $ST_INO = 1 + $[; $ST_MODE = 2 + $[;