Reputation: 7422
Is there any way to by pass "$" keyword at runtime
eg
println $anish
output will be
$anish
Upvotes: 0
Views: 195
Reputation: 171194
Either use single quoted strings:
println '$anish'
Or escape the dollar as Tom suggests
println "\$anish"
Upvotes: 4