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

Re: Indented here docs?

Thread Previous | Thread Next
July 3, 2016 19:29
Re: Indented here docs?
Message ID:
So far, it seems the changes I must make are:

  * Switch ~ to -
  * Guard memEQ and ninstr appropriately
  * Rework PL_tokenbuf logic slightly (maybe I can do PL_tokenbuf +1
instead of shifting everything over)
  * Fix this silly bug:

  perl -e 'print <<~EOF;'
  Can't find string terminator "OF" anywhere before EOF at -e line 1.

  * Rework shareable code to static functions then modify the rest of
scan_heredoc to also support the new syntax
  * Tests for <<-`...`
  * Convert warning to a fatal error
  * Update perldiag/pod/etc..

Aside from the above, do we have a decision/consensus on if we need a
deprecation cycle for the existing behaviour of <<-EOF / <<-"EOF" etc?
(which, as far as I can tell, is to throw a warning and then
eventually fail compilation? Or are there some cases where this is
legal somehow?

Also, is this going experimental for 5.26?


-- Matthew Horsfall (alh)

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