duplicate of:

https://rt.perl.org/Public/Bug/Display.html?id=125951

On Wed, Nov 18, 2015 at 12:44 AM Siavash <perl6-bugs-follo...@perl.org>
wrote:

> # New Ticket Created by  Siavash
> # Please include the string:  [perl #126658]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=126658 >
>
>
> Running 'require Module::Name <&subroutine>;' gives this error:
> Trying to import symbols &subroutine from 'Module::Name', but it does
> not export anything
>
> The specific module I used was DateTime::Format
> (https://github.com/supernovus/perl6-datetime-format):
> require DateTime::Format <&strftime>;
> Which resulted to this error:
> Trying to import symbols &strftime from 'DateTime::Format', but it does
> not export anything
> It works fine with 'use DateTime::Format'.
>
> I tested a very simple module and it worked, so does JSON::Tiny (see
> below)
>
> Related links and discussions:
> http://irclog.perlgeek.de/perl6/2015-11-16#i_11545596
>  >> I changed `unit module DateTime::Format;` to `unit module Format;`
> in module's source code and then this worked: require
> Format:file('[Path to /DateTime/Format.pm6]') <&strftime>;
> http://irclog.perlgeek.de/perl6/2015-11-16#i_11545652
>  >> test case: require JSON::Tiny; require DateTime::Format; say
> OUR::("JSON::Tiny"); say OUR::("DateTime::Format")
>  >> DateTime::Format doesn't get added to OUR::, for whatever reason...
> https://gist.github.com/cygx/cfef662ea505cd68b2e8
>

Reply via email to