2. What Is Ruby ? A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
3. Ah, yes, but what is Ruby, and how it is different then Perl ?
11. a = case b when /^+$/ : 'digits' when /^+$/ 'letters' when /^[a-f]+$/, /^[A-F]+$/ 'hexa' when '1' : 'one' else b.class end use Switch; switch ($b) { case /^+$/ { $a = 'digits'; } case /^+$/ { $a = 'letters';} case /^[a-f]+$/ { next; } case /^[A-F]+$/ { $a='hexa';} case ('1') { $a = 'one' } else { $a = ref b; } }
12. Is that all ? Oh, no, we didn't even scratch the surface of Ruby.