In order to make your use conditional, you need to wrap it, and the if condition, in a BEGIN block. This will then get run at compile time (use time).
BEGIN { if ( $online == 1 ) { # This variable is defined before, according + to the $^0 use POSIX 'locale_h'; setlocale( LC_ALL, "pt_BR.iso88591" ); } }
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
In reply to Re: use depending on environment
by rinceWind
in thread use depending on environment
by Andre_br
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |