develooper Front page | perl.perl6.users | Postings from August 2022

BEGIN {} question

Thread Next
From:
ToddAndMargo via perl6-users
Date:
August 28, 2022 22:58
Subject:
BEGIN {} question
Message ID:
d10feb8b-16de-d5c1-f4e1-f3f1f4e84452@zoho.com
Hi All,

I am thinking of using

    BEGIN {}

to fire up a splash screen (libnotify).

Question: is what happens between the brackets
isolated from the rest of the code?   If I set
variable values or declare variables, are they
wiped out, etc.?

Many thanks,
-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If I had a dime every time I didn't know
what was going on, I'd be like, "Why is
everyone giving me all these dimes?"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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