diff options
Diffstat (limited to 'pod/perltrap.pod')
-rw-r--r-- | pod/perltrap.pod | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pod/perltrap.pod b/pod/perltrap.pod index 06ddb19bfc..d06f84ff80 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 |