dnmfarrell/Perl6-One-Liners

Tabs in CALCULATIONS

Opened this issue · 1 comments

dha commented

In this section, you should probably put somewhere that many of these examples use fields that are specifically tab-separated, as - unless I'm very confused - fields can be separated by other things. :-)

E. g.

perl6 -ne 'say [+] .split("\t")'

could just as easily be

perl6 -ne 'say [+] .split(",")'

for a CSV file rather than a TSV file.

dha commented

Just noticed that one of the examples does, in fact, split on comma, and specifically says so. Probably better, IMO, to make a general statement that the separator can be whatever it needs to be and take each example as being able to use a different separator.