Re: [PATCH] multiple heredoc beginning in the same line
On Thu, Dec 01, 2016 at 10:46:17AM -0600, andy_b...@wiwb.uscourts.gov wrote: > Hmm: > $ cat /tmp/here.pl6 > my ($first, $second) = qq:to/END1/, qq:to/END2/; > FIRST > MULTILINE > STRING > END1 >SECOND >MULTILINE >STRING >END2 > say "f: $first, s: $second"; > > $ perl6 /tmp/here.pl6 > f: FIRST > MULTILINE > STRING > , s: SECOND > MULTILINE > STRING > > > I'd expected $second to have both strings, as its here doc seems to start > at "FIRST" and go to END2 ... or am I misreading this? Freely rephrasing POSIX[1] to adapt it to Perl6 the description could beĀ : The first here-document begins after the next and continues until there is a line containing only the delimiter (possibly preceded by spaces) followed immediately by a , Then the next here-document starts, if there is one. So it is expected that $second does not include $first. [1]: http://pubs.opengroup.org/onlinepubs/007904875/utilities/xcu_chap02.html#tag_02_07_04
Re: [PATCH] multiple heredoc beginning in the same line
On Thu, Dec 01, 2016 at 10:15:03AM -0500, Will Coleda wrote: > This will be much more likely to be applied if you provide a pull > request to the repo at https://github.com/perl6/doc I agree but it was a lot simpler for me to send it by e-mail at the moment. I will perhaps try to make a pull-request when I have time and access at the same time.
Re: [PATCH] multiple heredoc beginning in the same line
it's not so difficult, really. you just gotta know the trick: - cd into the repository you want, then run "git am". - Use your mail client's "view source" function (ctrl-u in thunderbird for example). - copy the complete mail source including headers - paste it into the terminal that's running git am - hit return if necessary, and ctrl-d done. I pushed the patch to our repository. Thanks for your work, francois! - Timo