Why don't you just single-quote your string?
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";
In reply to Re: Extracting money from a double quoted string
by Corion
in thread Extracting money from a double quoted string
by sherab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |