Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Printf format

by AnomalousMonk (Archbishop)
on Feb 22, 2021 at 04:40 UTC ( #11128647=note: print w/replies, xml ) Need Help??


in reply to Printf format --Solved Thanks

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: note [id://11128647]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2023-03-30 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?