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

Re: modules and constants

Thread Previous | Thread Next
From:
Tom Blackwood
Date:
December 6, 2019 08:03
Subject:
Re: modules and constants
Message ID:
CAFB0xy+H7Wn6+fjcyq_GiCzD6tTYNgZSemnaqxTbDmUp1UYpCg@mail.gmail.com
Todd,

AFAIK Perl’s culture is not to use so many constants in actual programming.
:)

Tom

On Fri, Dec 6, 2019 at 3:47 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> Hi All,
>
> Its there a way, if you import a module that is also
> imports a bunch of constants into your main program
> to be used globally?
>
> If so, what is the syntax in the module and in the main program?
>
> And what happends if there is a name conflict between
> the module and main program?
>
> Many thanks,
> -T
>

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