I just think Ruby code looks so great. I’m so glad we get to do
things like this:
module Data
include DBDBD
def parse
cmt = ""
each do |s|
case s
when END_RE
yield cmt
when DATA_RE
yield cmt,s
cmt = ""
when COMMENT_RE
cmt << s
end
end
end
end
I love it all, including the oft-maligned tailing end’s
But the way the indentation came out made me laugh.
Like saying:
Boy, I love Perl code. Just look how beautiful and
intuitive this is: &(&(#$%^#$(&^%$)#&^%^%@^#*$^&(#%^@%^+!@$^%^#^
Hal
PS - Thinking of imitating Andy (/\ndy) and
signing my name as |-|al. Or perhaps |-|/|_.
I just think Ruby code looks so great. I’m so glad we get to do
things like this:
[…]
I love it all, including the oft-maligned tailing end’s
I understand.
But the way the indentation came out made me laugh.
Like saying:
Boy, I love Perl code. Just look how beautiful and
intuitive this is: &(&(#$%^#$(&^%$)#&^%^%@^#*$^&(#%^@%^+!@$^%^#^
Ha – I need to expand(1) things I guess
module Data
include DBDBD
def parse
cmt = “”
each do |s|
case s
when END_RE
yield cmt
when DATA_RE
yield cmt,s
cmt = “”
when COMMENT_RE
cmt << s
end
end
end
end
PS - Thinking of imitating Andy (/\ndy) and
signing my name as |-|al. Or perhaps |-|/|_.
It’s good to see your perl improving Hal That is pretty close to a
legal line of perl, you just have your bracketing a little confused. Is
this what you were trying to do?