Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^4: A locale independent sprintf?

by swl (Priest)
on Jul 29, 2020 at 11:27 UTC ( #11119955=note: print w/replies, xml ) Need Help??

in reply to Re^3: A locale independent sprintf?
in thread A locale independent sprintf?

Very handy. When applied at the package scope it will also allow code to avoid locale based effects across subs (i.e. more than just sprintf).

Replies are listed 'Best First'.
Re^5: A locale independent sprintf?
by jcb (Parson) on Jul 30, 2020 at 01:51 UTC

    Unless you are putting your packages in blocks, locale does not exist in package scope — it is a lexical pragma, just like strict and warnings. So no locale at file scope will inhibit locale effects for everything after it in the same file, unless countermanded with use locale.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2021-04-15 17:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found