FAQ

On Fri, Apr 11, 2014 at 01:43:04PM +0000, Ed Avis wrote:
A here-document embedded in the middle of a larger expression, which itself
spans multiple lines, is quite rare.
Nonsense. I found several examples of this usage after grepping only my
own published code:

https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-MakeMaker-Fallback-0.009/lib/Dist/Zilla/Plugin/MakeMaker/Fallback.pm#L58
https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Test-CheckBreaks-0.007/lib/Dist/Zilla/Plugin/Test/CheckBreaks.pm#L344
https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Test-CleanNamespaces-0.003/lib/Dist/Zilla/Plugin/Test/CleanNamespaces.pm#L61
https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Test-PAUSE-Permissions-0.001/lib/Dist/Zilla/Plugin/Test/PAUSE/Permissions.pm#L59
https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Keywords-0.004/t/01-basic.t#L26
https://metacpan.org/source/ETHER/Test-Deep-Type-0.004/t/01-basic.t#L101
It could even be made to warn that the handling of this case will change
in a future perl version
There's nothing wrong with the current construct, and its handling in the
parser is quite straightforward. I don't see any upside in changing it.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 11 | next ›
Discussion Overview
groupperl5-porters @
categoriesperl
postedApr 10, '14 at 10:09a
activeApr 28, '14 at 6:10a
posts11
users7
websiteperl.org

People

Translate

site design / logo © 2021 Grokbase