From: Bryan Dunsmore Date: 2012-01-02T07:05:24+09:00 Subject: Re: noob question regarding strings Linus Phan wrote in post #1039089: > Aren't "variable" and "s" variables and not strings? No as they do not reference another object. You can tell they are strings because they are surrounded by double-quotes ("). > They are placeholders holding the string, which is the "" part right? Maybe this helps much? string = "3" => "3" "string" => "string" > I don't see where the literal is. :/ The literal is just the string by itself: "string" # this is a string literal A regular string would be the string a variable references: var = "string" => "string" # this is the string referenced by `var` "string" => "string" # this is just a string by itself, a string literal -- Posted via http://www.ruby-forum.com/.