Where you try to read the $io handle, you are positioned at the end of the 'file'. Just before you start reading, say,
That will fix it.seek $io, 0, 0; while (<$io>) {
After Compline,
Zaxo
In reply to Re: IO::String Defining FH for writing, but not reading.
by Zaxo
in thread IO::String Defining FH for writing, but not reading.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |