C
chen li
Hi all,
I run a script copied from "the Ruby way" but it
doesn't work. Any comments?
Thanks,
Li
###script
DATA.each_line do |line|
puts line.reverse
end
_END_
line A
line B
line C
##screen output
(NameError)
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
I run a script copied from "the Ruby way" but it
doesn't work. Any comments?
Thanks,
Li
###script
DATA.each_line do |line|
puts line.reverse
end
_END_
line A
line B
line C
##screen output
p352_data.rb:2: uninitialized constant DATAruby p352_data.rb
(NameError)
Exit code: 1
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com