X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Ftermcap.pl;h=8c7381be5f688d8d1444d8bc06bd9cfb582e5043;hb=2a773401c9513390fb5c5052085181dd7bea39e1;hp=c36575aa457ca59213e0ba9ef8680abbe0929375;hpb=55497cffdd24c959994f9a8ddd56db8ce85e1c5b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/termcap.pl b/lib/termcap.pl index c36575a..8c7381b 100644 --- a/lib/termcap.pl +++ b/lib/termcap.pl @@ -1,4 +1,20 @@ ;# $RCSfile: termcap.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:16 $ +# +# 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. +# +# In particular, this should not be used as an example of modern Perl +# programming techniques. +# +# 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'; @@ -13,8 +29,8 @@ sub Tgetent { local($TERM) = @_; local($TERMCAP,$_,$entry,$loop,$field); - warn "Tgetent: no ospeed set" unless $ospeed; - foreach $key (keys(TC)) { + # warn "Tgetent: no ospeed set" unless $ospeed; + foreach $key (keys %TC) { delete $TC{$key}; } $TERM = $ENV{'TERM'} unless $TERM;