Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Can't find string terminator "ENDHEADER" anywhere before EOF

by The Mad Hatter (Priest)
on Sep 19, 2004 at 01:50 UTC ( #392084=note: print w/ replies, xml ) Need Help??


in reply to Can't find string terminator "ENDHEADER" anywhere before EOF

Another option is to change the delimeter to fit what you have instead of the other way around:

sub print_chat { print <<" ENDHEADER"; Content-type: text/html <html> <head><title>My Chat</title> </head> </html> ENDHEADER } return 1;

Also, wouldn't the return make more sense inside the sub?


Comment on Re: Can't find string terminator "ENDHEADER" anywhere before EOF
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (21)
As of 2014-09-22 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (200 votes), past polls