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

Re: Indented here docs?

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
July 1, 2016 16:33
Subject:
Re: Indented here docs?
Message ID:
20160701163324.GA21711@debian
* Aristotle Pagaltzis <pagaltzis@gmx.de> [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 <<~

-- 
rjbs

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About