<?xml version="1.0" encoding="windows-1252"?>
<node id="889482" title="Re: Export again" created="2011-02-21 14:48:40" updated="2011-02-21 14:48:40">
<type id="11">
note</type>
<author id="516687">
trwww</author>
<data>
<field name="doctext">
&lt;p&gt;You have to -&gt;import the symbols in to your library:&lt;/p&gt;

&lt;c&gt;
use warnings;
use strict;

package MyStandardModules;
use Time::HiRes ();

package main;
Time::HiRes-&gt;import('gettimeofday');
print gettimeofday();
&lt;/c&gt;

&lt;p&gt;I suggest either calling the function/method qualified with the namespace (ala my $time =  Time::HiRes::gettimeofday()) or use()ing the module in the place you need the symbol imported.&lt;/p&gt;

&lt;p&gt;Could you explain your adversion to use()ing the module in the package where the function is needed?&lt;/p&gt;</field>
<field name="root_node">
889426</field>
<field name="parent_node">
889426</field>
</data>
</node>
