Formating Dollar sign in front of digits.

O.K. all you experts . . . .You guys are two for two.   Here's another studid question.   This is probably comman knowledge for you.   How do you format a dollar sign in front of a bunch of numbers?   Thanks for you help!
jmeyer34Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CoolATIGuyCommented:
What do you mean format?  What's your goal?  What language?


CoolATIGuy
0
jmeyer34Author Commented:
Oh, sorry . . .in Perl.   We are learning how to format  . . . .such as with %15s    . . .stuff like that.   Is this not part of formatting?   Is it as simple as just putting a dollor sign in front of my variable?
0
marcin79Commented:
did you try to put \$ in front of the string(numbers) ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jmeyer34Author Commented:
Thanks!   I put what you said in front of my formating symbols.    Such as
printf "%-15s  \$10.2f  \$%8.2f\n\n", $employeename, $grosspay, $net_pay;    and it worked!   Thanks much!
0
marcin79Commented:
happy that i could help
for the future when you want to put a special char always put a \ before it ix if you want to put a \ in code you have to put \\

Marcin
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Theory

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.