Hi: I have a question about replacing $ sign when it is before a digit. For example:
$str = "$1.12"; I want to extact the dollar amount 1.12 from $str. If I do this: $str =~ s/\$//; $str then become .12. The "$1" in "$1.12" is interpreted first before substitution is applied. How do I prevent this? I can't use this: $str ='$1.12' because the $1.12 is read from a file. Does anyone have a suggestion? Thanks a lot. Jason __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>