<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Perl module - Page 9 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Perl_module&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Perl_module&amp;p=10">3.Next</a>
</p>
<p>            # prints "Hello, world!\n"print hello("Milky Way");  # prints "Hello, Milky Way!\n"</p>

<p><big>Hello/World.pm</big></p>
<p><syntaxhighlight lang="perl"><br/>
# "package" is the namespace where the module's functionality/data resides. <br/>
# It dictates the name of the file if you want it to be "use"d.<br/>
# If more than one word, it constrains the location of the module.</syntaxhighlight></p>

<p>package Hello::World;</p>

<p>
# By default Perl allows you to use variables without declaring <br/>
# them.  This may be convenient for short</p><p>
<a accesskey="1" href="page.php?w=Perl_module&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Perl_module&amp;p=10">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
