develooper Front page | perl.perl6.users | Postings from June 2018

Re: a `pe4rl6 -c` error to fix

Thread Previous | Thread Next
JJ Merelo
June 21, 2018 08:03
Re: a `pe4rl6 -c` error to fix
Message ID:
> > On Wed, Jun 20, 2018 at 9:59 PM, Todd Chester <
> What is a BEGIN block?

BEGIN is one of the "phasers" that are used in Perl 6

It marks a block of code for running as soon as possible, and if possible
during compile time. It runs only once. It's in the first phase of the
interpretation of a script, so it runs before any execution (or any
execution phaser) takes place. Execution order is shown here:



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About