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 |
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 |
Message body not shown because it is not plain text.