Why is $ENV{COLUMNS} undefined inside the Perl program?
From: Adam (a24061_at_yahoo.munged)
Date: 06/28/04
- Next message: John ©: "Re: error logs..."
- Previous message: Gregory Toomey: "Re: Elaine-Abigail Syndrome"
- Next in thread: Anno Siegel: "Re: Why is $ENV{COLUMNS} undefined inside the Perl program?"
- Reply: Anno Siegel: "Re: Why is $ENV{COLUMNS} undefined inside the Perl program?"
- Maybe reply: Anno Siegel: "Re: Why is $ENV{COLUMNS} undefined inside the Perl program?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Jun 2004 11:24:04 GMT
The environment variable $COLUMNS works as expected in bash
/home/adam $ echo $COLUMNS
165
[resizes xterm window]
/home/adam $ echo $COLUMNS
132
but $ENV{COLUMNS} is undefined inside a Perl program run from this
shell. Why? And how do I get its value inside the program?
I also tried
use Env qw (COLUMNS) ;
but $COLUMNS did not get defined.
-- Thanks, Adam
- Next message: John ©: "Re: error logs..."
- Previous message: Gregory Toomey: "Re: Elaine-Abigail Syndrome"
- Next in thread: Anno Siegel: "Re: Why is $ENV{COLUMNS} undefined inside the Perl program?"
- Reply: Anno Siegel: "Re: Why is $ENV{COLUMNS} undefined inside the Perl program?"
- Maybe reply: Anno Siegel: "Re: Why is $ENV{COLUMNS} undefined inside the Perl program?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|