in reply to Re^4: How to detect X?
in thread How to detect X?

How DISPLAY is used and how PERL5LIB is used are not at all analogous.