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