|
Encountered end of line while processing a string token I don't want to share the entire code because it is from Bruce Payette's
upcoming book.
I'd had a hard time copy and paste the code. Without sharing the whole
code, does this provide any insight as to what is wrong?
PS C:\> .\psa1.ps1
Encountered end of line while processing a string token.
At C:\psa1.ps1:5 char:5
+ @" <<<<
PS C:\> gc psa1.ps1|select-object -first 10
param($port=80)
[void][reflection.Assembly]::LoadWithPartialName("System.Net.Sockets")
function html ($content,$title = "Sample Page")
{
@"
<html>
<head>
<title>$title</title>
</head>
<body>
Since it is a function, I guess the error could also be anywhere near where
the function is called? |