note
CountZero
Welcome back to Perl!<p>Your problem is twofold:<ol><li>This module does not seem to be OO. It exports a function (<c>hello</c>) but not the constant <c>GOODBYE</c>; <li>Your subroutine <c>goodbye</c> does not live in the <c>SPEAK::ITALIAN</c> package, so you could consider adding <c>package SPEAK::ITALIAN;</c> just bebfore your subroutine definition.</ol>As from that place in your program all functions, constants, variables, ... will be considered to reside in the <c>SPEAK::ITALIAN</c> package unless you fully qualify them, as [almut] already said.<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-198160">
<p>CountZero</p><p><i>A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity."</i> - [http://www.canonical.org/~kragen/tao-of-programming.html|The Tao of Programming], 4.1 - Geoffrey James</p>
</div></div>
821583
821583