in reply to Re^4: How to right align outputs of stored data in a variable?
in thread How to right align outputs of stored data in a variable?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How to right align outputs of stored data in a variable?
by AnomalousMonk (Archbishop) on Feb 07, 2017 at 22:35 UTC |