Is there a way to tell sprintf to add a dollar sign?Sure, just: my $net = sprintf '$ %.2f', $amount - $taxes;You can put whatever you like in the format string.
For more complicated things, you can try Number::Format. It's a little heavyweight for my taste, but it works.
In reply to Re (3): Odd behavior of $#
by VSarkiss
in thread Odd behavior of $#
by JamesNC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |