Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
674 B

  1. #
  2. # This library is no longer being maintained, and is included for backward
  3. # compatibility with Perl 4 programs which may require it.
  4. #
  5. # In particular, this should not be used as an example of modern Perl
  6. # programming techniques.
  7. #
  8. # Suggested alternative: IO::Handle
  9. #
  10. ;# Usage: &flush(FILEHANDLE)
  11. ;# flushes the named filehandle
  12. ;# Usage: &printflush(FILEHANDLE, "prompt: ")
  13. ;# prints arguments and flushes filehandle
  14. sub flush {
  15. local($old) = select(shift);
  16. $| = 1;
  17. print "";
  18. $| = 0;
  19. select($old);
  20. }
  21. sub printflush {
  22. local($old) = select(shift);
  23. $| = 1;
  24. print @_;
  25. $| = 0;
  26. select($old);
  27. }
  28. 1;