Dan Daniels wrote:
> This does not work:
> 
> logdate = "#{@calendar1.year}-" + (@calendar1.month + 1).to_s +
> "-#{@calendar1.day}"
> #output is: 2007-07-30
> 
> puts "Getting log for #{logdate}"
> File.open("rdpconnect.log").each do |line|
>     if line.match(logdatepattern)
>         puts line
>     end
> end
> 
> 
> However, this does:
> 
> logdate = "2007-07-30"
> puts "Getting log for #{logdate}"
> File.open("rdpconnect.log").each do |line|
>     if line.match(logdatepattern)
>         puts line
>     end
> end
> 
> 
> 
> Any ideas or hints appreciated!
> Dan

What is logdatepattern, and what is its relation to logdate?