A
Adam
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.
/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.