#!/usr/bin/perl use Tk; use strict; use warnings; my $window = MainWindow->new; $window -> geometry("100x200"); $window->title("Host Report"); my $labs = $window->Label(-text => "Results", -wraplength => 100)->pack(-side => 'bottom'); #$window->Entry(-textvariable => \$hdb )->pack; $window->Button(-text => "Go", -command => \&host )->pack; $window->Button(-text => "Quit", -command => \&stop )->pack; MainLoop; sub host { my @message; #open (FH,"host.txt"); my @lines = ; #close FH; foreach my $hdb2 (@lines) { my @field = split(':',$hdb2); #if ($field[0] =~ /(?configure(-text =>"$messageString"); } sub stop{ exit; } __DATA__ these: lines are: the: lines that: you are: looking: at