Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: multi-lingual support...

by wog (Curate)
on Jan 05, 2002 at 03:44 UTC ( #136418=note: print w/ replies, xml ) Need Help??


in reply to Re: multi-lingual support...
in thread multi-lingual support...

Note that if you want to be able to change the order of parameters you will need to add yet an other indirection layer...

update: Okay... I should check docs less recent then the latest development version. Read this as "you won't have to in the next version of perl".

Actually, you won't. To quote the sprintf docs:

Perl supports parameter ordering, in other words, fetching the parameters in some explicitly speci fied "random" ordering as opposed to the default implicit sequential ordering. The syntax is, instead of the "%" and "*", to use "%"digits"$" and "*"digits"$", where the digits is the wanted index, from one upwards. For example:
printf "%2\$d %1\$d\n", 12, 34; # will print "34 12\n" printf "%*2\$d\n", 12, 3; # will print " 12\n"
(... more stuff on this topic omitted ...)


Comment on Re: Re: multi-lingual support...
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-09-21 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls