I realize this is a stupid question, but I'm having quite the time turning the text that was typed into an Entry Widget into a usable string for Perl. $string = $entry->get() just doesn't seem to be working for me. Here's some script:
use Tk;
$userentry = $nameframe->Entry(-width=>30);
$userentry->pack();
$ask1 = $userentry->get();
open (TEXT,"text.txt" or die;
print TEXT "User: $ask1";
close TEXT;
MainLoop;
Thanks.
use Tk;
$userentry = $nameframe->Entry(-width=>30);
$userentry->pack();
$ask1 = $userentry->get();
open (TEXT,"text.txt" or die;
print TEXT "User: $ask1";
close TEXT;
MainLoop;
Thanks.