Gossamer Forum
Home : General : Perl Programming :

Reading in $ without tokenizing

Quote Reply
Reading in $ without tokenizing
 I am trying to read in a web page and pull out a dollar amount. The
problem I'm having is when it reads a line with say $45.00 it thinks
the $45 is a variable. I want to read this dollar amount into a $price
variable but all I'm coming up with is .00. How can I read in a line
from a file without it thinking anything following a $ is a variable?

Subject Author Views Date
Thread Reading in $ without tokenizing DFDuck 3463 Jan 11, 2000, 4:48 PM
Post Re: Reading in $ without tokenizing
Mark Badolato 3303 Jan 11, 2000, 5:04 PM
Post Re: Reading in $ without tokenizing
ilya 3310 Jan 11, 2000, 5:36 PM
Post Re: Reading in $ without tokenizing
DFDuck 3313 Jan 11, 2000, 6:30 PM
Post Re: Reading in $ without tokenizing
Mark Badolato 3297 Jan 11, 2000, 7:25 PM
Post Re: Reading in $ without tokenizing
DFDuck 3306 Jan 12, 2000, 11:42 AM