my $fmt = "%-$textlength".'s '."%$numlength"."d\n";Your wrote: I think I would have used a straight double-quote interpolation: my $fmt = "%-${textlength}s %${numlength}d\n"; It seems clearer to my eye IMHO. Yes, I agree IF the OP understands the curly bracket context here.
I don't see the point of all the dots.I did that to avoid the {} syntax which can confuse beginners.
In reply to Re^5: How to right align outputs of stored data in a variable?
by Marshall
in thread How to right align outputs of stored data in a variable?
by perlnovice1900
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |