In a here doc, is there a way to concatenate a variable directly with the text? For example, to execute 'myscript.pl' below.
EOT
I know I could break it out and create the whole variable before the here doc, but I would like to know if there is a method of terminating the variable within the here doc.
Thanks,
G. Nubie
Code:
if ($secure) {
$path = "[URL unfurl="true"]https://www.secure.com/cgi-bin/";[/URL]
} else {
$path = "[URL unfurl="true"]http://www.abc.com/cgi-bin/";[/URL]
}
print <<EOT;
<form action="$pathmyscript">
</form>
I know I could break it out and create the whole variable before the here doc, but I would like to know if there is a method of terminating the variable within the here doc.
Thanks,
G. Nubie