Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Printf format --Solved Thanks

by pgmer6809 (Sexton)
on Feb 22, 2021 at 00:35 UTC ( #11128642=perlquestion: print w/replies, xml ) Need Help??

pgmer6809 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Printf format
by afoken (Chancellor) on Feb 22, 2021 at 00:40 UTC

    How is this question different from Line up cols using printf %m.nf? Did you read the answer you got there?

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: Printf format
by AnomalousMonk (Archbishop) on Feb 22, 2021 at 04:40 UTC

    See Re: Line up cols using printf %m.nf by pryrt:

    Win8 Strawberry 5.8.9.5 (32) Sun 02/21/2021 23:29:36 C:\@Work\Perl\monks >perl -Mstrict -Mwarnings my $fmt = "%3d : %5.2f : %3d\n"; for my $ar_args ( [ 111, 12.34, -1 ], [ 22, 0.00, -2 ], [ -2, -6.25, -3 ], ) { printf $fmt, @$ar_args; } ^Z 111 : 12.34 : -1 22 : 0.00 : -2 -2 : -6.25 : -3
    See sprintf for discussion of format specifiers.


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11128642]
Approved by Marshall
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-11-30 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?