in reply to Re: Can we use print <<HTML; twice in same file?
in thread [Solved]: Can we use print <<HTML; twice in same file?

No, you quoted the text about the trailing tag. Just change <<HTML; #… to <<"HTML"; #…


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^3: Can we use print <<HTML; twice in same file?
by fishmonger (Chaplain) on Aug 25, 2015 at 16:20 UTC

    Did you try that?

    Adding the double quotes around the opening tag won't solve the OP's problem. When using a herdoc, perl will "assume" that double quotes were used if none were used.

      No, but I always quote. And use use 5.20.1; (or use strict;), use warnings; and Perl::Critic's perlcritic -1


      Enjoy, Have FUN! H.Merijn