----- Original Message ----- 
From: "Gavin Bowlby" <[EMAIL PROTECTED]>
To: <beginners@perl.org>
Sent: Friday, January 20, 2006 7:57 AM
Subject: problems with subroutine prototype checking


b.pm:

# You may want to add this :
package b;
require Exporter;
our @ISA = qw/Exporter;
our @EXPORT qw/b_function/;

if you don't add the above, you 'll have to call the sub by :
b::b_function ($var);


      sub b_function ($$$) {

      }

 
1; # Don't forget this at the end of package
or else, the pacakge will fail to use.


HTH,
Jim



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to