Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: using format twice

by zer (Deacon)
on Apr 05, 2006 at 06:05 UTC ( [id://541286]=note: print w/replies, xml ) Need Help??


in reply to Re^3: using format twice
in thread using format twice

which data type is that?

Replies are listed 'Best First'.
Re^5: using format twice
by GrandFather (Saint) on Apr 05, 2006 at 07:29 UTC

    %s is a string format specification. The format specification matches /%([+-0#]? \d+ (.\d+)) ([bcdefginopsuxDEFGOUX])/x. Possibly most interesting to you are that a - left justifies in a field. The first digit group specifies the field width (minimum width for strings) and the second digit group is decimal digits for floats, minimum field width for integers and maximum field width for strings.

    The flags most likely of interest to you are 'd' or 'i' (integer), 'f' (float) and 's' (string).


    DWIM is Perl's answer to Gödel
      ya the only problem is if you port it to C it isnt going to function as it requires an integer type.long long type to be specific, but it isnt working on my system so hence the perl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-16 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found