I guess, you're the man!
Your code works. I did not know of the Exporter.
What happens if there are several package with the same name and exported?
thanks,
rkl
> [EMAIL PROTECTED] wrote:
>
>> > my $return = do_wrap('hello');
>>
>> Doesn't this have to be MyCommon::do_wrap('hello'); ?
>
> No. You do not have to prepend the package name when Exporter is properly
> invoked. That proper invocation can be a bit tricky, though. That is why
> it
> sat for a few days, while I worked on other projects.
>
>> When running it, the error: Undefined subroutine &main::do_wrap
>>
>> thanks,
>> -rkl
>
> What Perl version are you using? Did you test the code exactly as posted?
> I
> put a bit of time into making this work. Could you show us the code as
> you
> ranit, and the results from the command-line?
>
> What I showed at the end was my test run, using Perl 5.8.0. from the
> Windows
> 2000 command line.
>
> Joseph
>
>
-----------------------------------------
eMail solutions by
http://www.swanmail.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]