FileHandle::Unget operates exactly the same as FileHandle, except that it provides a version of ungetc that allows you to unget more than one character. It also provides ungets to unget a string.
This module is useful if the filehandle refers to a stream for which you can't just 'seek()' backwards. Some operating systems support multi-byte 'ungetc()', but this is not guaranteed. Use this module if you want a portable solution. In addition, on some operating systems, eof() will not be reset if you ungetc after having read to the end of the file.
NOTE: Using 'sysread()' with 'ungetc()' and other buffering functions is still a bad idea.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.1634-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
0.1634-bp155.2.9 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
0.1634-bp154.1.16 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
0.1628-bp153.1.15 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
0.1628-bp152.3.17 info | GA Release | 2020-04-16 | 15 SP2 |
|
|
0.1628-bp151.3.1 info | GA Release | 2019-07-16 | 15 SP1 |
|
|
0.1628-bp151.2.14 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
0.1628-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|