To broach a pun, the author may have been "packaging" a number of
modules into a single file, simply by concatenating the files together.
That would also help explain the &quot;1;&quot; in your example.<br><br><div><span class="gmail_quote">On 10/27/05, <b class="gmail_sendername">Robert P. J. Day</b> &lt;<a href="mailto:rpjday@mindspring.com">rpjday@mindspring.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&nbsp;&nbsp;some perl code i've inherited has a number of &quot;.pl&quot; files with the
<br>following structure -- consider a sample file fred.pl:<br><br>=============================<br><br>#!/usr/bin/perl<br>...<br><br>package fred;<br><br>... executable code ...<br><br>1;<br><br>==============================
<br><br>&nbsp;&nbsp;i understand the concept of defining a package name in a .pm file,<br>but this is just a regular executable file and it doesn't appear to<br>need to be part of any package.<br><br>&nbsp;&nbsp;what is the rationale for defining a package for a top-level
<br>executable file?<br><br>rday<br><br>p.s.&nbsp;&nbsp;this file *does* &quot;use&quot; a number of module files, but they have<br>no relation to the above package name in any way.<br>_______________________________________________
<br>kw-pm mailing list<br><a href="mailto:kw-pm@pm.org">kw-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/kw-pm">http://mail.pm.org/mailman/listinfo/kw-pm</a><br></blockquote></div><br>