home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Peanuts NeXT Software Archives
/
Peanuts-2.iso
/
Developer
/
webobjects
/
extensions
/
win-nt
/
NTPerl5-109.exe
/
Lib
/
flush.pl
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-04-16
|
391 b
|
24 lines
;# Usage: &flush(FILEHANDLE)
;# flushes the named filehandle
;# Usage: &printflush(FILEHANDLE, "prompt: ")
;# prints arguments and flushes filehandle
sub flush {
local($old) = select(shift);
$| = 1;
print "";
$| = 0;
select($old);
}
sub printflush {
local($old) = select(shift);
$| = 1;
print @_;
$| = 0;
select($old);
}
1;