$# applies only to print itself doing the conversion. Interpolating the variable into a string doesn't bring it into play.
Also note that $# is deprecated and it's better to explicitly run through sprintf than depend on it.
In reply to Re: Odd behavior of $#
by Fletch
in thread Odd behavior of $#
by JamesNC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |