View Single Post
Old 11-15-2006   #5 (permalink)
Andrew Watt [MVP]


 
 

Re: Encountered end of line while processing a string token

On Wed, 15 Nov 2006 01:15:57 -0400, "Marco Shaw" <marco@Znbnet.nb.ca>
wrote:

>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")
>{
> @"


Marco,

Try it after deleting all the whitespace characters before @" on line
5.

Andrew Watt MVP
My System SpecsSystem Spec