use strict; use warnings; system("import -window root MyScreenshot.png");