Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 wandering the Monastery: (5)
As of 2023-02-07 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (38 votes). Check out past polls.

    Notices?