in reply to Why the following code shows a compilation error?

No any spaces allowed before and after the string terminator (EOHTML). Strip those and it will compile.

And carriage return is a must if the string terminator is at the last line of a script.

see perldoc perlop (Quote-Like-Operators)

  • Comment on Re: Why the following code shows a compilation error?