<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt">Alex,<br><br>I use the "<font color="navy" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">@EXPORT_OK&nbsp;&nbsp; = qw (open);" to export the function as I expect more functions should be overridden.<br><br>I tried your alias approach, but it does not work for me. <br></span></font><div><br>My temporary solution is adding "no strict 'subs'".<br><div style="margin-left: 40px;"><span style="color: rgb(0, 0, 255);">use myLog 'open'; no strict 'subs';</span><br></div></div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><br>Tiger.<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b>
 Alexander Danel &lt;danel@speakeasy.net&gt;<br><b><span style="font-weight: bold;">To:</span></b> Chicago.pm chatter &lt;chicago-talk@pm.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, October 26, 2010 12:59:37 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Chicago-talk] logging in and out files<br></font><br>



 
 
<style>
<!--
filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
filtered {margin:1.0in 1.25in 1.0in 1.25in;}

 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;text-decoration:underline;}
span.emailstyle17
        {font-family:Arial;color:navy;}
span.EmailStyle18
        {font-family:Arial;color:navy;}
 _filtered {margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {}
-->
</style>



<div class="Section1">

<div>

<div>

<div>

<div>

<div>

<div>

<div>

<div>

<div>

<div>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Tiger,</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Given what you are trying to do, I suppose
you want to force export somehow.&nbsp; (In other words, I assume you have many
program files that you want to just add one line “use MyLogs;” and be done, and
not have to add the aliasing line into each individual code file.) You might
try the following, which is probably a little controversial, but might suit
your purposes. </span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">In the module file “<a target="_blank" href="http://MyLog.pm">MyLog.pm</a>”, try ending
it with a reset to “pachage main”, and then do the export (or “alias”)
operation.&nbsp; So the module file would end like this:</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal" style="margin-left: 0.5in;"><font color="navy" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;"># . . . ending of “MyLog.pm” module forces export.</span></font></p> 

<p class="MsoNormal" style="margin-left: 0.5in;"><font color="navy" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal" style="margin-left: 0.5in;"><font color="navy" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">package main;</span></font></p> 

<p class="MsoNormal" style="margin-left: 0.5in;"><font color="navy" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal" style="margin-left: 0.5in;"><font color="navy" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;"># Alias</span></font></p> 

<p class="MsoNormal" style="margin-left: 0.5in;"><font color="navy" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">*open = \&amp;myLog::open;</span></font></p> 

<p class="MsoNormal" style="margin-left: 0.5in;"><font color="navy" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal" style="margin-left: 0.5in;"><font color="navy" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">1;</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Any comments about this idea are welcomed.</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Alexander Danel</span></font></p> 

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> &nbsp;</span></font></p> 

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div></div>
</div></body></html>