From: Casey West Date: Fri, 9 May 2003 11:17:53 +0000 (-0400) Subject: [perl #8703] unescaped @ is fine X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1fa58becc2b101b3968cca02b977c50896c15fc5;p=p5sagit%2Fp5-mst-13.2.git [perl #8703] unescaped @ is fine Message-ID: <20030509151753.GO49820@geeknest.com> p4raw-id: //depot/perl@19461 --- diff --git a/pod/perltrap.pod b/pod/perltrap.pod index 06ddb19..d06f84f 100644 --- a/pod/perltrap.pod +++ b/pod/perltrap.pod @@ -1344,13 +1344,12 @@ within certain expressions, statements, contexts, or whatever. =item * Interpolation -Double-quoted strings may no longer end with an unescaped $ or @. +Double-quoted strings may no longer end with an unescaped $. $foo = "foo$"; - $bar = "bar@"; - print "foo is $foo, bar is $bar\n"; + print "foo is $foo\n"; - # perl4 prints: foo is foo$, bar is bar@ + # perl4 prints: foo is foo$ # perl5 errors: Final $ should be \$ or $name Note: perl5 DOES NOT error on the terminating @ in $bar