develooper Front page | perl.perl5.porters | Postings from June 2017

Re: lib/_charnames.pm puts references in %^H

Thread Previous | Thread Next
From:
Zefram
Date:
June 15, 2017 01:00
Subject:
Re: lib/_charnames.pm puts references in %^H
Message ID:
20170615010000.GF13676@fysh.org
demerphq wrote:
>              Would it be fair to say that it is as though the sub
>being called by "\N{TEST}" was wrapped in a BEGIN?

Kinda.  \N{} and BEGIN are two ways of running code at compile time.
There are others, such as "use" (which calls an import method at compile
time).  No one of these mechanisms is more fundamental than the rest.

-zefram

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