<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Tue Jun 18, 2013 10:19 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Tue Jun 18, 2013 10:19 pm</pubDate>
  <lastBuildDate>Tue Jun 18, 2013 10:19 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Perl</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=94987#94987</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=66746'&gt;ScannerDarkly&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Nov 21, 2010 3:12 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Perl's syntax makes my eyes bleed.&lt;br /&gt;
&lt;br /&gt;
Oh sorry, thought this was a Python thread  &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=94987#94987</comments>
                                        <author>ScannerDarkly</author>
                                        <pubDate>Sun Nov 21, 2010 3:12 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=94987#94987</guid>
                                      </item>
                                      <item>
                                        <title>Re: Perl</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=93507#93507</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=23984'&gt;bobthebob1234&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Oct 03, 2010 2:19 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Figured out the enter key bit.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
$main -&amp;gt; bind&amp;#40;'&amp;lt;Return&amp;gt;', sub &amp;#123;sayhello&amp;#40;&amp;#41;&amp;#125;&amp;#41;;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
so simple.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=93507#93507</comments>
                                        <author>bobthebob1234</author>
                                        <pubDate>Sun Oct 03, 2010 2:19 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=93507#93507</guid>
                                      </item>
                                      <item>
                                        <title>Perl</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=93475#93475</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=23984'&gt;bobthebob1234&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Oct 01, 2010 6:15 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Why hello there.&lt;br /&gt;
&lt;br /&gt;
I have been set an assignment to make a hangman game with perl and tk.&lt;br /&gt;
&lt;br /&gt;
All is good, however when the user enters a letter and presses the enter key, nothing happens, they need to click on a button to get stuff to happen.&lt;br /&gt;
&lt;br /&gt;
Here is some code&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
...&lt;br /&gt;
# This is a text-userinput field&lt;br /&gt;
my $entryword = $main-&amp;gt;Entry&amp;#40;&lt;br /&gt;
# width is in characters, not pixel&lt;br /&gt;
-width =&amp;gt; 20&amp;#41;-&amp;gt;place&amp;#40; -x =&amp;gt; 440, -y =&amp;gt; 175&amp;#41;;&lt;br /&gt;
...&lt;br /&gt;
y $inputButton = $main-&amp;gt;Button&amp;#40;-text =&amp;gt; 'Take input', -state =&amp;gt; &amp;quot;disabled&amp;quot;,&lt;br /&gt;
-command =&amp;gt; sub&amp;#123;sayhello&amp;#40;&amp;#41;&amp;#125;&lt;br /&gt;
&amp;#41;-&amp;gt;place&amp;#40;-x =&amp;gt; 440, -y =&amp;gt; 355 &amp;#41;;&lt;br /&gt;
...&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
I want 'sayhello' to be run when the user has inputted a letter and presses enter.&lt;br /&gt;
&lt;br /&gt;
Even better, the user can only input one letter and 'sayhello' is automatically run when then input one letter...&lt;br /&gt;
&lt;br /&gt;
How would I go about doing this?&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=93475#93475</comments>
                                        <author>bobthebob1234</author>
                                        <pubDate>Fri Oct 01, 2010 6:15 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=93475#93475</guid>
                                      </item></channel></rss>