in reply to Re^2: please explain print/say behavior with setlocale
in thread please explain print/say behavior with setlocale

See my update as to compile-time vs. run-time.  IOW, when you write

BEGIN { setlocale LC_NUMERIC, "german"; } $n = 1 / 2; print $n . "\n"; # 0,5 print 1/2 ."\n"; # 0,5

you get localized output in both cases, because localization is already in effect at compile-time.

Replies are listed 'Best First'.
Re^4: please explain print/say behavior with setlocale
by wwe (Friar) on Mar 30, 2010 at 12:11 UTC
    Using BEGIN block is very cool solution for this problem. Thank you very much. Would you say missing German localization without a BEGIN block is a bug or intended behavior for advanced usage?