in reply to Adding A Dollar Sign

Finally a question I have the answer to and someone beats me to it.
print '$200.00' . "\n"; or print "\$200.00\n";

learning also

Replies are listed 'Best First'.
Re: Re: Adding A Dollar Sign
by eg (Friar) on Jan 13, 2001 at 22:21 UTC

    In your first example, rather than a period, you can use a comma to pass print a list and avoid that (admittedly not all that expensive) concatenation:

    print '$200.00', "\n";