M
m b
Hi=2C
I new to Ruby. It's a lot of fun to learn..
if I do this:
f=3Dopen('filename.dat'=2C'r')
str=3Df.read
and then:
str.each_line do |line|
/ruby/.match(line)
ruby prints out variable line and say its a RegexpError
'empty range in character class' as if it interprets line as a Regexp
What am I doing wrong? There are a lot of strange characters in variable l=
ine=2C
maybe that is the issue?
=
I new to Ruby. It's a lot of fun to learn..
if I do this:
f=3Dopen('filename.dat'=2C'r')
str=3Df.read
and then:
str.each_line do |line|
/ruby/.match(line)
ruby prints out variable line and say its a RegexpError
'empty range in character class' as if it interprets line as a Regexp
What am I doing wrong? There are a lot of strange characters in variable l=
ine=2C
maybe that is the issue?
=