Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
unintuitive language feature (exclamation functions)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Stefano Crocco, post: 4616351"] If in your first post you'd have stated more clearly what you expected and what you instead got, we wouldn't have misunderstood your needs. After all, the only (or, at least, main) difference between sub and sub! is the one I spoke of in my other answer. However, I can't try your code, as I don't have the sqlite gem/library. Would you please post what you get using sub and what you get using sub!? The line puts "Inserting value a=#{a} into the database.\n" displays the correct value (a=bye). If I understand you correctly, the surprising behavior comes from inserting it in the database. Posting what you get from the other puts will enable also those who don't have sqlite to help you. (By the way, you don't need to put the \n at the end of the string with puts). Stefano [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
unintuitive language feature (exclamation functions)
Top