Prev
|
Index
|
Next
Familiar features
Strings
myStr = "This is a string"
Arrays
myArray = ['a','b',c,[d,e]]
Hashes
hash = { myArray => 'first', 'b' => 'second' }
NOTE: in Ruby any object can be a hash key
Regex
myRegex = /^This/
Here-docs
Intro to Ruby for Perl programmers