It is not well defined. __END__ and __DATA__ even serve the same purpose within the main script file (but not in module files). I recommend not combining them.
-Dan On Sat, Feb 22, 2020 at 10:45 AM Илья <elcaml...@gmail.com> wrote: > To be honest, perl documentation doesn't shed any light on case where > __END__ and __DATA__ tokens coexists in one file. But I'm sure that it is > not mojolicious problem, but perl behaviour in that case. > On 22.02.2020 18:40, Mike Lieman wrote: > > >The two control characters ^D and ^Z, and the tokens __END__ and __DATA__ > may be used to indicate the logical end of the script before the actual end > of file. * Any following text is ignored.* > > https://perldoc.perl.org/perldata.html#Special-Literals > > On Sat, Feb 22, 2020 at 10:12 AM Stefan Adams <s1037...@gmail.com> wrote: > >> I just spent more time than I should admit about figuring this out. >> >> *Templates in the DATA section must come before the END section.* >> >> Is this common to all of Perl that DATA must come before END? Can anyone >> point me to a document resource for this, so that I can read it and beat it >> into my head? This is not the first time I've gotten tripped up on this. >> -- >> You received this message because you are subscribed to the Google Groups >> "Mojolicious" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to mojolicious+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQZykiSrmiFxoEdRYB-KdOw%3DeDPTQ86zC%3DNu428EuOJEA%40mail.gmail.com >> <https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQZykiSrmiFxoEdRYB-KdOw%3DeDPTQ86zC%3DNu428EuOJEA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mojolicious+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mojolicious/CAG2_C8CWUeAvZ6fguaaADBqzDV4PZBhvrh%2ByUBsx8H5g%3D6_xoQ%40mail.gmail.com > <https://groups.google.com/d/msgid/mojolicious/CAG2_C8CWUeAvZ6fguaaADBqzDV4PZBhvrh%2ByUBsx8H5g%3D6_xoQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mojolicious+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mojolicious/9cf87eba-ab47-9e7c-285d-519abc39da77%40gmail.com > <https://groups.google.com/d/msgid/mojolicious/9cf87eba-ab47-9e7c-285d-519abc39da77%40gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/CABMkAVUKRaw%2BUD-MaSZw%2Bkyew1ONt%2BQgVv%2BzosYJ6wvHK9j0ng%40mail.gmail.com.