Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Escaping '$'

Status
Not open for further replies.
Oh... because I'm making it like $1,000, and it now looks like \$1,000 and it still doesn't work.

Do I have to escape the "," also?
 
hmerrill's '\' escape works with a double-quoted string.
You don't need to escape a '$' inside a single-quoted string.
Code:
print '$1,000';
print "\n";
print "\$1,000";
print "\n";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top