You'll need a BEGIN block. Note, however, that the logic to set your $online flag will have to be included in that block, or one prior to it, something like this:
BEGIN { # Code to set $online here. # $online = 1 if whatever.... if ($online) { use POSIX 'locale_h'; setlocale( LC_ALL, "pt_BR.iso88591" ); } }
In reply to Re: use depending on environment
by VSarkiss
in thread use depending on environment
by Andre_br
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |