isn't :nl awkward ?

2013-09-24 Thread Marc Chantreux
On Mon, Sep 23, 2013 at 11:00:43PM -0500, Patrick R. Michaud wrote: I think it's currently specced in S32 as :nl(\n). oops. i missed something :) http://perlcabal.org/syn/S32/IO.html#open lot of documentations, specifications, and tools refers to RS as the unit of the file can be other than

Re: isn't :nl awkward ?

2013-09-24 Thread Tobias Leich
Hi, what you can do now is: So, my $doc = /path/to/file.IO.slurp..split( $line-sep ).split( $field-sep ); Which seems pretty short and readable, at least to me :o) Example: my $doc = a:b:c_d:e:f_g:hi_aaa.split('_').split(':'); say $doc.perl rakudo b78da4: OUTPUTĀ«$((a, b, c).list, (d, e, f).list,

Re: isn't :nl awkward ?

2013-09-24 Thread Marc Chantreux
On Tue, Sep 24, 2013 at 08:50:37AM +0200, Tobias Leich wrote: Hi, what you can do now is: So, my $doc = /path/to/file.IO.slurp..split( $line-sep ).split( $field-sep ); Which seems pretty short and readable, at least to me :o) sure ... and explode my memory usage as some marc collections