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