in reply to How to get the width of a console window?

I'm using the following on Solaris:

use Term::ANSIScreen qw/:screen/; my ($width, $height) = GetTerminalSize ();