S
Sebastian Ruhs
Hi!
I wonder why ruby throws two warning messages when the follwing script
is executed:
I wonder why ruby throws two warning messages when the follwing script
is executed:
Code:
#!/usr/bin/ruby -w
require 'date'
aktDate=Date.today
lastRun=aktDate
lastRun.upto(aktDate) do |tDate|
puts "#{tDate.day}.#{tDate.month}.#{tDate.year}"
end
[code]
Output:
dodger@satan:~/source/ruby$ ./dateTest.rb
(eval):4: warning: instance variable @__10761__ not initialized
(eval):4: warning: instance variable @__10337__ not initialized
23.7.2004
Someone any idea?
TIA,
SR
PS: System: Debian GNU/Linux Sid with Ruby 1.8.2pre1