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

Re: modules and constants

Thread Previous | Thread Next
Tom Blackwood
December 6, 2019 08:03
Re: modules and constants
Message ID:

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


On Fri, Dec 6, 2019 at 3:47 PM ToddAndMargo via perl6-users <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About