in reply to Detecting web clients monitor resolution without javascript
Another thought just came to me - are you interested in screen size or browser window size, as they may not be the same thing. Not everyone uses their browser at full screen.
You're still basically looking at a javascript/perl solution no matter what, it just changes which variables you use to calculate the size with.