Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Can we use print <<HTML; twice in same file?

by Tux (Canon)
on Aug 25, 2015 at 15:57 UTC ( [id://1139869]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1139869]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-18 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found