in reply to use depending on environment
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" ); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use depending on environment
by jZed (Prior) on Jun 22, 2005 at 15:49 UTC | |
|
Re^2: use depending on environment
by Andre_br (Pilgrim) on Jun 22, 2005 at 15:59 UTC |