Forgot to mention I'm trying to match an 8 digit number, but I pretty 
sure it's being stored as a string.

I am taking the values from an Excel worksheet

po_number = worksheet.Range("#{col}#{row}").value

if po_number.length == 8 #the standard Purchase Order length
  aPOlist.append(PurchaseOrder.new("#{po_number}", "#{notes}", 
"#{company}", "#{unit_config}", "#{due_date}", "#{quantity.to_i}"))
end

-- 
Posted via http://www.ruby-forum.com/.