<html>
<body>
<font size=3>At 05:01 PM 06/03/2013, arocker@Vex.Net wrote:<br>
<blockquote type=cite class=cite cite="">Following our discussion last
week, I've prepared a simple example of<br>
refactoring repeated code, (naive), first to a subroutine, (subro),
then<br>
to a module (Counter.pm) used by a program (counts).<br><br>
I'm courting public humiliation by publishing them. (See the
attached.)<br>
The first 2 are easy to run, but "counts" requires Counter.pm
to be in one<br>
of the directories named in @INC.<br><br>
In every case, the result should be:<br>
Number is 4<br>
Number is 5<br><br>
The programs are pretty useless in themselves, but I wanted to
concentrate<br>
on the essential points.<br>
</font></blockquote><br>
Thank you, that provides great direction.<br><br>
<br>
<x-sigsep><p></x-sigsep>
<font size=3>>><br>
Christopher Jones, P.Eng.<br>
Suite 1801, 1 Yonge Street<br>
Toronto, ON M5E1W7<br>
Tel. 416-203-7465<br>
Fax. 416-946-1005<br>
email cj@enersave.ca<br>
</font></body>
</html>