<?xml version="1.0" encoding="windows-1252"?>
<node id="997017" title="Re^6: How to import names from a dynamically required module" created="2012-10-03 05:11:29" updated="2012-10-03 05:11:29">
<type id="11">
note</type>
<author id="757127">
tobyink</author>
<data>
<field name="doctext">
&lt;p&gt;The odds are small, yes. In my decade plus of Perl usage I've encountered bugs because of this two, perhaps three, times. But each time it took me bloody ages to figure out, which is why I have been trying to avoid this ambiguity in &lt;a href="https://metacpan.org/source/TOBYINK/MooseX-ErsatzMethod-0.003/lib/MooseX/ErsatzMethod.pm"&gt;recent work&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The [mod://aliased] module is, by the way, an excellent way of avoiding these problems:&lt;/p&gt;

&lt;code&gt;
use aliased 'Math::BigInt';

my $seven = BigInt-&gt;new(7);  # no ambiguity
&lt;/code&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-757127"&gt;
&lt;small&gt;&lt;small&gt;
&lt;tt&gt;perl -E'sub Monkey::do{say$_,for@_,do{($monkey=&amp;#x5B;caller(0)]-&gt;&amp;#x5B;3])=~s{::}{ }and$monkey}}"Monkey say"-&gt;Monkey::do'
&lt;/tt&gt;&lt;/small&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
996924</field>
<field name="parent_node">
997012</field>
</data>
</node>
