in reply to RE: Re: @forminputs annoying error
in thread @forminputs annoying error
You must have had another EOT somewhere in the file, because it should have given you one of these: Can't find string terminator "EOT" anywhere before EOF at ... So between the first terminating EOT and the second terminating EOT you had the @forminputs variable and perl thought you wanted to print the variable name along with all the other code in between.
That's why it's helpful to give your here-document labels different names each time, like:
That way if you accidentally put a semicolon on the end of one you'll immediately know where to look because you'll get the error above instead of some other crazy errors.print <<EOT1; EOT1 print << EOT2; EOT2
|
|---|