in reply to Simple Hash gui (useful!)
IO::CaptureOutput should help simplify your code a bit
-- simonflk