<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Thanks Jacinta and Damien,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Yup, I missed the capitals. Just to make sure, I copied and pasted from <A href="http://www.unix.org.ua/orelly/perl/prog3/ch11_02.htm">http://www.unix.org.ua/orelly/perl/prog3/ch11_02.htm</A> (which I didn't know existed until yesterday). I also tried Jacinta's <FONT class="Apple-style-span" face="Courier New">qw</FONT> suggestion.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Same problem, though.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This call works...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier New">use input::Simple_Billycan_2_Stage qw(water_export);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">Simple_Billycan_2_Stage::water_export();</FONT></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV>But this one doesn't...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier New">use input::Simple_Billycan_2_Stage qw(water_export);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">water_export();</FONT></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV>Here's the error message from the second call...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier New">Undefined subroutine &amp;main::water_export called at perrmoss.pl line 379, &lt;RF&gt; line 21.</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Here's the module...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier New">package Simple_Billycan_2_Stage;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">require      Exporter;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">our @ISA       = qw(Exporter);</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">our @EXPORT    = qw(water_export);    # Symbols to be exported by default</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">our @EXPORT_OK = qw($weight);    # Symbols to be exported on request</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">our $VERSION   = 1.00;         # Version number</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">### Include your variables and functions here</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">sub water_export { print "One-hump dromedary\n" }</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">$weight = 1024;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">1;</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I also have the following at the start of the main program...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier New">#!/usr/local/bin/perl</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">use warnings;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">use strict;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">use Time::Local;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">use lib;</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I tried the <FONT class="Apple-style-span" face="Courier New">use lib</FONT> after reading Chapter 11 of 'Programming Perl', though it does not make a difference to the problem described above.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I might be clutching at straws, but I wonder if this has something to do with file paths. I'm working on Mac OSX10.4. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The main program, PERRMOSS is...</DIV><DIV><FONT class="Apple-style-span" face="Courier New">user/martin/PERRMOSS/Perl/PERRMOSS.pl</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The module is...</DIV><DIV><FONT class="Apple-style-span" face="Courier New">user/martin/PERRMOSS/Perl/input/Simple_Billycan_2_Stage.pm</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>And the perl stuff is in...</DIV><DIV><FONT class="Apple-style-span" face="Courier New">system/library/perl/5.8.6/</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>(makes me wonder how the <FONT class="Apple-style-span" face="Courier New">#!/usr/local/bin/perl</FONT> line works! - I guess I need it for windows systems)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>One more thing. Because I'm going to define my modules with one sub-routine each, should I put the name of the sub-routine in <FONT class="Apple-style-span" face="Courier New">our @EXPORT_OK = qw($function_name); <FONT class="Apple-style-span" face="Lucida Grande">?</FONT></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Regards,</DIV><DIV>Martin</DIV><DIV>Visit my website...</DIV><DIV><A href="http://web.mac.com/martin_jacobs1"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 238); -khtml-text-decorations-in-effect: underline; ">http://web.mac.com/martin_jacobs1 </SPAN></A></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></BODY></HTML>