in reply to Re^7: Error binmode() on unopened filehandle
in thread Error binmode() on unopened filehandle
This:evidently deletes the <CR> characters.my $data = <<EOF; first second EOF
Hmm, I'm quite surprised by that, and I'm still looking for the place where that's documented. Even trying to turn off the default :crlf layer on Windows doesn't seem to restore the CRLFs in $data. In addition, even on *NIX, eval "<<BAR\r\nx\r\ny\r\nBAR" causes the returned value to have only \n's, so it appears to be something to do with how heredocs are parsed. In fact, I've reported a bug.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Error binmode() on unopened filehandle
by Marshall (Canon) on May 07, 2020 at 04:05 UTC |