2 # This library is no longer being maintained, and is included for backward
3 # compatibility with Perl 4 programs which may require it.
4 # This legacy library is deprecated and will be removed in a future
7 # In particular, this should not be used as an example of modern Perl
8 # programming techniques.
10 # Suggested alternative: IO::Handle
12 warn( "The 'flush.pl' legacy library is deprecated and will be"
13 . " removed in the next major release of perl. Please use the"
14 . " IO::Handle module instead." );
16 ;# Usage: &flush(FILEHANDLE)
17 ;# flushes the named filehandle
19 ;# Usage: &printflush(FILEHANDLE, "prompt: ")
20 ;# prints arguments and flushes filehandle
23 local($old) = select(shift);
31 local($old) = select(shift);