in reply to How to detect X?
#!/usr/bin/perl use warnings; use strict; use Tk; my $mw; my $xtest = eval( 'my $mw = new MainWindow;' ); if($@) { chomp($@); print "X error: '$@'\n"; } else { print "X ok\n"; } MainLoop;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to detect X?
by blazar (Canon) on Feb 21, 2005 at 12:55 UTC | |
by zgrim (Friar) on Feb 21, 2005 at 13:48 UTC | |
by Anonymous Monk on Feb 21, 2005 at 14:22 UTC | |
by husker (Chaplain) on Feb 21, 2005 at 23:02 UTC | |
by jdporter (Paladin) on Feb 22, 2005 at 04:41 UTC | |
|