develooper Front page | perl.perl6.users | Postings from November 2019

Re: FC31 can't find my module subs

Thread Previous | Thread Next
From:
Tom Browder
Date:
November 4, 2019 10:28
Subject:
Re: FC31 can't find my module subs
Message ID:
CAFMGiz_HFZDSAq-0EC-6U=tdTba3A8Qo=zitnALx24CFYqBQJw@mail.gmail.com
On Mon, Nov 4, 2019 at 02:25 JJ Merelo <jjmerelo@gmail.com> wrote:

>
>
> El lun., 4 nov. 2019 a las 8:35, ToddAndMargo via perl6-users (<
> perl6-users@perl.org>) escribió:
>
>>
>> Problem still occurs with selinux disabled
>
>
One thing I noticed, you are missing a line at the top of your modules that
should read something like "unit module MyModule;", and the
export(:some-key) is okay.

But then, in the calling programs, use them something like this:

use lib </path/to/p6lib>;     # MyModule.pm6 is in this dir
use MyModule :some-key1, :some-key2; # note comma

HTH,

-Tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About