Marco,
Given the source of the code, perhaps it would be worth also posting
the question at
http://www.manning-sandbox.com/forum.jspa?forumID=248
Andrew Watt MVP
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")
>{
> @"
> <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?