Skip Menu |

This queue is for tickets about the PerlIO-eol CPAN distribution.

Report information
The Basics
Id: 123250
Status: new
Priority: 0/
Queue: PerlIO-eol

Owner: Nobody in particular
Requestors: maurice [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Download (untitled) / with headers
text/plain 1.6k
Can someone help we understand what I'm doing wrong with this module? I'm reading in a DOS-generated text file on a linux system. This module is supposed to normalize the line-endings, right? Meaning, I shouldn't need to care that this file has lines terminated by \012\015 rather than just \015. But the parsing seems to be non-deterministic. Attached is a test script and test input file. One time I run it, I get: $VAR1 = [ 'B19-7048-3263', '618268', 'bob', '2488', 'mauriceg', 'M Schmitt', '1517.51', '2017-110-06 10:59:01-03', '', '2019-10-08', '2019110--15', 'MarriottsCClub Son Antem', '223199', '2019-10-04' ]; Next time I run it, I see: $VAR1 = [ 'B19-7048-3263', '618268', 'ob', '2488', 'maurice@g', 'M Schmitt', '1517.51', '2017-110-06 10:59:01-03', '', '20119-10-08', '2019110-15', 'MarriottsCClub Son Antem', '223199', '2019-10-04' ]; $ cat -t test.tsv booking_id^Iposting_id^Iowner_username^Iowner_user_id^Iowner_email^Iowner_fullname^Iowner_payout_amount^Iowner_payout_deadline^Ibroker^Izendesk_id^Icheckin^Icheckout^Iresort_name^Iowner_transaction^Iowner_payout_date^M B19-7048-3263^I618268^Ibob^I2488^Imaurice@g^IM Schmitt^I1517.51^I2017-10-06 10:59:01-03^I^I^I2019-10-08^I2019-10-15^IMarriotts Club Son Antem^I123199^I2019-10-04^M What the heck am I doing wrong? Also, where's the best place to discuss this module? I see several github repos but not sure which is official.
Subject: test.tsv
Download test.tsv
text/tab-separated-values 353b
booking_id posting_id owner_username owner_user_id owner_email owner_fullname owner_payout_amount owner_payout_deadline broker zendesk_id checkin checkout resort_name owner_transaction owner_payout_date B19-7048-3263 618268 bob 2488 maurice@g M Schmitt 1517.51 2017-10-06 10:59:01-03 2019-10-08 2019-10-15 Marriotts Club Son Antem 123199 2019-10-04
Subject: try
Download try
application/octet-stream 280b

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 185b
I've tried many versions going back to PerlIO::eol 0.10. Tried it on Perls 5.18, 5.24, and 5.27.4. All on Linux Mint 17. I think I must not be understanding correct use of the module?

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to