develooper Front page | perl.perl5.porters | Postings from July 2016

Re: Indented here docs?

Thread Previous | Thread Next
Ricardo Signes
July 1, 2016 16:33
Re: Indented here docs?
Message ID:
* Aristotle Pagaltzis <> [2016-07-01T12:20:41]
> I like everything about the proposal except (*groan*) the syntax. Yes,
> sorry. But. I don’t need (and would be reluctant) to make up a counter
> proposal myself. Because as it turns out, at least bash and zsh both
> support this, and both of them use <<- for it.
> So can we follow that precedent?
> Unfortunately-ish, that already has a meaning in Perl: <<-EOF gets
> parsed as `<< "" - EOF`, which is not a completely silly thing to do: if
> ...

This same case applies to <<~"EOF" -- so the argument to be like bash and zsh
(which I haven't looked at for this) seems unhindered by this problem, which
would also hinder <<~


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About