This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c068db9
)
Deprecate stat.pl with a warning
author
Steffen Mueller
<smueller@cpan.org>
Wed, 2 Sep 2009 21:04:23 +0000
(23:04 +0200)
committer
Steffen Mueller
<smueller@cpan.org>
Wed, 2 Sep 2009 21:04:23 +0000
(23:04 +0200)
lib/stat.pl
patch
|
blob
|
blame
|
history
diff --git
a/lib/stat.pl
b/lib/stat.pl
index
c6682b9
..
a84b0ac
100644
(file)
--- 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];
;#
;# 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 + $[;
$ST_DEV = 0 + $[;
$ST_INO = 1 + $[;
$ST_MODE = 2 + $[;