-----Messaggio originale-----
Da: Darren H. [mailto:dhulem1 / umbc.edu] 
Inviato: sabato 12 novembre 2011 23:07
A: ruby-talk ML
Oggetto: Re: Reading CSV File

This is the output of the error
C:\>ruby test.rb
test.rb:14: syntax error, unexpected keyword_do_block  do (price * quantity)
   ^


What I am trying to do is:

-Get the users input for product_id
-Get Users input for quantity
-Lookup in the CSV file (which contains product_id,name,price,and type) to
match the users input for product_id and match it with price -Then multiply
price (from the CSV file) times quantity which the user gives and produce an
output.

--Darren

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


 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 ING DIRECT Conto Arancio. 4,20% per 12 mesi, zero spese, aprilo in due minuti!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11921&d=29-12