Previous
Next
Table of contents
It means if a then b else c end
.
Assuming that the file ends in a linefeed, following code may give the
fastest result.
open("file").read.count("\n")
They act with $~, and return the start index and the end index of
matched data $0, $1... in the original string. See an example
in tab expansion.
Previous
Next
Table of contents