Posts Tagged ‘rdoc’

Regular expressions are sort of like in Perl, in that you would write them like this: if str =~ /Tara|Clark/ #do something end Blocks seem a bit confusing as well. Well I understand the idea of curl braces or do…end distinguishing it from other sections of code, but what confuses me is what they’re used […]