Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know if I can detect user screen resolution using perl? Thank you for the help!!!!

Replies are listed 'Best First'.
Re: Screen Resolution
by valdez (Monsignor) on Jan 14, 2003 at 22:22 UTC

    I think you need Term::Screen:

    require Term::Screen; $scr = new Term::Screen; unless ($scr) { die " Something's wrong \n"; } $rows = $scr->rows; $cols = $scr->cols;

    If you want brower screen size, then read Get visitor's screen size..

    HTH, Valerio