<?xml version="1.0" encoding="windows-1252"?>
<node id="1007165" title="Re: Get hangman words from text file" created="2012-12-04 17:31:23" updated="2012-12-04 17:31:23">
<type id="11">
note</type>
<author id="712372">
kennethk</author>
<data>
<field name="doctext">
&lt;p&gt;The error &lt;c&gt;Global symbol "@hangman" requires explicit package name...&lt;/c&gt; means that whatever code you are &lt;em&gt;actually&lt;/em&gt; running is using [doc://strict] but does not declare &lt;c&gt;@hangman&lt;/c&gt;, perhaps via [doc://my] or [doc://our].  You can use [doc://diagnostics] if you need more clarity on an error message.  See [id://87628].  [id://745674] wouldn't hurt either.

&lt;p&gt;Seeing as your demo code does not emit any errors and there is no such mention in the "along the lines of" code, you need to post the code you are actually running, so we can provide guidance.  Your posted code is grossly in line with what you need to do, though my [doc://open] would likely look more like &lt;c&gt;open my $fh, '&lt;', 'words.txt' or die "Open fail on words.txt: $!\n"&lt;/c&gt;;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-712372"&gt;
&lt;hr /&gt;
&lt;p&gt;#11929 First ask yourself `How would I do this without a computer?'  Then have the computer do it the same way.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1007164</field>
<field name="parent_node">
1007164</field>
</data>
</node>
