summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteffen Mueller <smueller@cpan.org>2009-09-02 23:03:48 +0200
committerSteffen Mueller <smueller@cpan.org>2009-09-02 23:03:48 +0200
commita06bfbf46ad8e21060b59ed409ba2f87fbfcdc35 (patch)
tree6ce5dd93d130901c63daac8bd9166076a79b683f /lib
parented344b9fd339277a934510b9ffb06b6e98a3a6ba (diff)
downloadperl-a06bfbf46ad8e21060b59ed409ba2f87fbfcdc35.tar.gz
Deprecate open2.pl with a warning
Diffstat (limited to 'lib')
-rw-r--r--lib/open2.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/open2.pl b/lib/open2.pl
index 8cf08c2e8b..5c24a3c1b2 100644
--- a/lib/open2.pl
+++ b/lib/open2.pl
@@ -1,3 +1,6 @@
+# This legacy library is deprecated and will be removed in a future
+# release of perl.
+#
# This is a compatibility interface to IPC::Open2. New programs should
# do
#
@@ -7,6 +10,10 @@
#
# require 'open2.pl';
+warn( "The 'open2.pl' legacy library is deprecated and will be"
+ . " removed in the next major release of perl. Please use the"
+ . " IPC::Open2 module instead." );
+
package main;
use IPC::Open2 'open2';
1