Re: [SLL] Help needed in setting PERL environment
It's mrtg. The later releases require this. I just get tired of typing 'env LANG=C mrtg configfile.cfg'. Setting the environment from within the perl script gives me an easy way out. > Just out of curiosity... what is it about your script that requires LANG=C?
Re: [SLL] Help needed in setting PERL environment
> /I have a perl script that requires LANG=C./ Just out of curiosity... what is it about your script that requires LANG=C? On 02/07/2012 02:03 PM, Ralph Sims wrote: I have a perl script that requires LANG=C. This is a snippet of the code that checks for that. How can I set the environment within the script? if ( $ENV{LANG} and $ENV{LANG} =~ /UTF.*8/i ){ my $args = join " ", map { /\s/ ? "\"$_\"" : $_ } @ARGV; $args ||= ""; print<
Re: [SLL] Help needed in setting PERL environment
On Tue, Feb 07, 2012 at 2:03pm Ralph Sims wrote: > I have a perl script that requires LANG=C. This is a snippet of the code > that checks for that. How can I set the environment within the script? Put in: $ENV{'LANG'} = 'C'; Or run the script like so: LANG=C scriptname -- Robert Woodcock - r...@blarg.net "Duct tape: The last refuge of the incompetent... because the competent don't leave it for last." -- seen on slashdot
[SLL] Help needed in setting PERL environment
I have a perl script that requires LANG=C. This is a snippet of the code that checks for that. How can I set the environment within the script? if ( $ENV{LANG} and $ENV{LANG} =~ /UTF.*8/i ){ my $args = join " ", map { /\s/ ? "\"$_\"" : $_ } @ARGV; $args ||= ""; print <