package abbrev;
-warn( "The 'abbrev.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Text::Abbrev module instead." );
-
sub main'abbrev {
local(*domain) = @_;
shift(@_);
+#
+# This library is no longer being maintained, and is included for backward
+# compatibility with Perl 4 programs which may require it.
+# This legacy library is deprecated and will be removed in a future
+# release of perl.
+#
# assert.pl
# tchrist@convex.com (Tom Christiansen)
#
# be printed out by &panic, which is just the stack-backtrace
# routine shamelessly borrowed from the perl debugger.
-warn( "The 'assert.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl." );
-
sub assert {
&panic("ASSERTION BOTCHED: $_[$[]",$@) unless eval $_[$[];
}
#
# Suggested alternative: Math::BigFloat
-warn( "The 'bigfloat.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Math::BigFloat module instead." );
-
# Arbitrary length float math package
#
# by Mark Biggar
#
# Suggested alternative: Math::BigInt
-warn( "The 'bigint.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Math::BigInt module instead." );
-
# arbitrary size integer math package
#
# by Mark Biggar
#
# Arbitrary size rational math package
-warn( "The 'bigrat.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " bigrat module instead." );
-
# by Mark Biggar
#
# Input values to these routines consist of strings of the form
#
# Suggested alternative: FileCache
-warn( "The 'cacheout.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " FileCache module instead." );
-
# Open in their package.
sub cacheout'open {
#
# Suggested alternative: Term::Complete
-warn( "The 'complete.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Term::Complete module instead." );
-
;# @(#)complete.pl,v1.1 (me@anywhere.EBay.Sun.COM) 09/23/91
;#
;# Author: Wayne Thompson
#
# Suggested alternative: the POSIX ctime function
-warn( "The 'ctime.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " POSIX module (ctime function) instead." );
-
;#
;# Waldemar Kebsch, Federal Republic of Germany, November 1988
;# kebsch.pad@nixpbe.UUCP
# &dotsh ('/foo/bar arg1 ... argN');
#
-warn( "The 'dotsh.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use "
- . " one of the related modules from CPAN instead."
- . " (Shell::Source, Shell::GetEnv, ...)" );
-
sub dotsh {
local(@sh) = @_;
local($tmp,$key,$shell,$command,$args,$vars) = '';
# In particular, this should not be used as an example of modern Perl
# programming techniques.
-warn( "The 'exceptions.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl." );
-
# Here's a little code I use for exception handling. It's really just
# glorfied eval/die. The way to use use it is when you might otherwise
# exit, use &throw to raise an exception. The first enclosing &catch
#
# Suggested alternative: Cwd
-warn( "The 'fastcwd.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Cwd module instead." );
-
# Usage: $cwd = &fastcwd;
#
# This is a faster version of getcwd. It's also more dangerous because
# removed in a future version of Perl. Please use the File::Find module
# instead.
-warn( "Please use the File::Find module instead of the deprecated"
- ." 'find.pl' library, which will be removed in the next major"
- ." release of perl" );
-
# Usage:
# require "find.pl";
#
# removed in a future version of Perl. Please use the File::Find module
# instead.
-warn( "Please use the File::Find module instead of the deprecated"
- ." 'finddepth.pl' library, which will be removed in the next"
- ." major release of perl" );
-
# Usage:
# require "finddepth.pl";
#
#
# Suggested alternative: IO::Handle
-warn( "The 'flush.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " IO::Handle module instead." );
-
;# Usage: &flush(FILEHANDLE)
;# flushes the named filehandle
#
# Suggested alternative: Cwd
-warn( "The 'getcwd.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Cwd module instead." );
-
#
# Usage: $cwd = &getcwd;
#
# Suggested alternatives: Getopt::Long or Getopt::Std
-warn( "The 'getopt.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Getopt::Long or Getopt::Std modules instead." );
-
;# Process single-character switches with switch clustering. Pass one argument
;# which is a string containing all switches that take an argument. For each
;# switch found, sets $opt_x (where x is the switch name) to the value of the
#
# 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.
#
# Suggested alternative: Sys::Hostname
-warn( "The 'hostname.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Sys::Hostname module instead." );
-
sub hostname
{
local(*P,@tmp,$hostname,$_);
# This legacy library is deprecated and will be removed in a future
# release of perl.
-warn( "The 'importenv.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Env::Export module (or similar) from CPAN instead." );
-
;# This file, when interpreted, pulls the environment into normal variables.
;# Usage:
;# require 'importenv.pl';
# In particular, this should not be used as an example of modern Perl
# programming techniques.
-warn( "The 'look.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl." );
-
;# Sets file position in FILEHANDLE to be first line greater than or equal
;# (stringwise) to $key. Pass flags for dictionary order and case folding.
#
# Suggested alternative: Getopt::Long
-warn( "The 'newgetopt.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Getopt::Long module instead." );
-
{ package newgetopt;
# Values for $order. See GNU getopt.c for details.
#
# 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
#
# require 'open3.pl';
-warn( "The 'open3.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " IPC::Open3 module instead." );
-
package main;
use IPC::Open3 'open3';
1
#
# Suggested alternative: Cwd
-warn( "The 'pwd.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Cwd module instead." );
-
;# $RCSfile: pwd.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:11 $
;#
;# $Log: pwd.pl,v $
;# or
;# @words = shellwords(); # defaults to $_ (and clobbers it)
-warn( "The 'shellwords.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Text::ParseWords module instead." );
-
require Text::ParseWords;
*shellwords = \&Text::ParseWords::old_shellwords;
;# $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 + $[;
# release of perl.
# This subroutine returns true if its argument is tainted, false otherwise.
#
-warn( "The 'tainted.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Scalar::Util module ('tainted' function) instead." );
sub tainted {
local($@);
# Suggested alternative: Term::Cap
#
-warn( "The 'termcap.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Term::Cap module instead." );
-
;#
;# Usage:
;# require 'ioctl.pl';
*timelocal::cheat = \&Time::Local::cheat;
-warn( "The 'timelocal.pl' legacy library is deprecated and will be"
- . " removed in the next major release of perl. Please use the"
- . " Time::Local module instead." );