in reply to Re^4: Extracting money from a double quoted string
in thread Extracting money from a double quoted string

Then let me repeat what I gave as an answer in my first reply to you:

As an alternative, you could quote the dollar sign, so that Perl knows you don't mean the variable $9:
my $string= "Price is \$9.99 on our website";

What part of that answer does not apply to your problem?

Is your question why $string does not contain the value 9.99 when you use double quotes? Is your question about the difference between double and single quotes in Perl? Is your question about what the variable $9 contains?