• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

Print the dollar sign $

I want to print the $ sign but perl thinks it is a string.

For example

$name = "*$R";

0
pirates
Asked:
pirates
1 Solution
 
ozoCommented:
$name = '*$R';
#or
$name = "*\$R";
#or
$name = q"*$R";
0
 
mprobst111799Commented:
Hello pirates !

You have to type for e.g.:

print "\$ 100.00";
0
 
piratesAuthor Commented:
Ozo's comment solved the problem.  How do I give you the points?

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now