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?
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?