I have a box with 4 X11 servers running on it with the following designations: :3.0, :2.0, :1.0, :0.0
I have a Moose class that launches an application (a Firefox browser) and then uses the X11::GUITest module to perform some operations on the application. I can change which display the application runs on and which display X11::GUITest operations are sent to by setting the $ENV{'DISPLAY} system variable like so:
package FFMech; $ENV{'DISPLAY'} = ':3.0'; # open app in display #3 and send X11::GUITe +st operations to it use X11::GUITest qw(SendKeys ClickWindow); use Moose;
Instead of hard coding the DISPLAY variable, I'd like my FFMech object to be able to set this variable. How do I achieve this?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to How to set $ENV{'DISPLAY'} variable programatically? by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |