I have this line in my program:

@sigList << {:imei => imei, :misdn => sim, :date => time[0..9], :batch
=> batch[1..3], :serial => serial}

I get this error:

D:/Work/Ruby/Massage/merge.rb:138:in `getSigMDB': undefined method
`[]' for nil:NilClass (NoMethodError)

I think this would be better:

D:/Work/Ruby/Massage/merge.rb:138:in `getSigMDB': undefined method
`[]' for nil:NilClass (NoMethodError) accessing object "time"





Les


-- 
Man's unfailing capacity to believe what he prefers to be true rather
than what the evidence shows to be likely and possible has always
astounded me. We long for a caring Universe which will save us from
our childish mistakes, and in the face of mountains of evidence to the
contrary we will pin all our hopes on the slimmest of doubts. God has
not been proven not to exist, therefore he must exist.

- Prokhor Zakharov