This is a legacy RCR. If this is your RCR, please resubmit it using the new format and process.
while gets
print $_.instance_eval {
...
}
end
This would help the common use pattern of piping a series of lines through a script.
Old:
ruby -n -e 'puts $_.split.join(" | ")'
ruby -p -e '$_ = $_.split.join(" | ") + "n"'
New:
ruby -j -e 'split.join(" | ") + "n"'
ruby -j -e 'split.join(" | ").newline"'
Back to RCRchive.
RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog