Alp on Nostr: Or what I've found but never used myself is setting the filemode to binary with ...
Or what I've found but never used myself is setting the filemode to binary with binmode()
This lines should be added at the beginning of your Perl script:
binmode(STDIN, ':crlf');
binmode(STDOUT, ':crlf');
binmode(STDERR, ':crlf');
Published at
2025-01-22 20:31:49Event JSON
{
"id": "78e20c8d4ab36b9a16fb4199ca56b18c05ffed1042bb43ffd2feaa56f98f85b4",
"pubkey": "f527cf970ce260e74261214bf612e8f75a59db1835ed7e4053326c3f65e232ee",
"created_at": 1737577909,
"kind": 1,
"tags": [
[
"p",
"f527cf970ce260e74261214bf612e8f75a59db1835ed7e4053326c3f65e232ee",
"",
"mention"
],
[
"e",
"9fac91266f569cc1131b6c97fcb21efb01d502b4edc0477dbc95e12af866f4a2",
"",
"root"
],
[
"p",
"a311301faa1b9a4e96960184ee442f70c6cbb738044ec963ad42ff264663f8f2"
]
],
"content": "Or what I've found but never used myself is setting the filemode to binary with binmode()\n\nThis lines should be added at the beginning of your Perl script:\n\nbinmode(STDIN, ':crlf');\nbinmode(STDOUT, ':crlf');\nbinmode(STDERR, ':crlf');\n",
"sig": "aaa08ec3984e629554d0659d3d9907f9ec9c828555274dd68f36239c5113fce6befa4bd295d3430b4f5f702a677881a1dde5115dee75645ba8a9642672ab8553"
}