Skip Menu |

This queue is for tickets about the Perl6-Slurp CPAN distribution.

Report information
The Basics
Id: 82095
Status: open
Priority: 0/
Queue: Perl6-Slurp

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



Subject: docs synopsis irs in scalar context
Date: Wed, 19 Dec 2012 08:17:00 +1100
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
The synopsis of the docs shows $file_contents = slurp $file, {irs=>"\n\n"}; but if I understand the rest of the docs correctly the irs option makes no difference in scalar context, only in the array context line splitting. It might be clearer if the array context example was moved up and the options such as irs and chomp affecting it followed. -- Mathematical jargon elucidated for the layman: "It is easy to show ..." -- it takes 20 pages and a week's hard work
Subject: Re: [rt.cpan.org #82095] docs synopsis irs in scalar context
Date: Wed, 19 Dec 2012 16:08:33 +1100
To: bug-Perl6-Slurp [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Show quoted text
> The synopsis of the docs shows > > $file_contents = slurp $file, {irs=>"\n\n"}; > > but if I understand the rest of the docs correctly the irs option makes > no difference in scalar context, only in the array context line > splitting. It might be clearer if the array context example was moved > up and the options such as irs and chomp affecting it followed.
Thanks, I'll consider that. Damian