k0rn has asked for the wisdom of the Perl Monks concerning the following question:
The &show($line); Is what runs the sub routine to enter the response from the server into the list box heres that routine.# Fork it into two process's my $kidpid; die "Cant Fork: $!" unless defined($kidpid = fork()); if ($kidpid) { while (defined ( my $line = <$sock> ) ){ chomp($line); $line =~ s/(\x0a|\x0d)//g; # Display response from server &show($line); print "<< $line\n";
Now the print statement that says "Testing if this is even working!!!" Is printing so the routine is being called. But the Text is not inserting into the ListBox.Also the Print "<< $line\n"; is only printing out the << part and not the response from the server. If anyone knows why this is happening it would be appreciated a lot thank you.sub show { my $line = $_; print "Testing if this is even working!!!\n\n"; print "<< $line\n"; $scrolledText -> insert('end',"<< $line"); # Insert the text in +to the Listbox $scrolledText }
|
|---|