develooper Front page | perl.perl5.porters | Postings from January 2022

Re: Can't localize lexical variable $x at ...

Thread Previous | Thread Next
From:
demerphq
Date:
January 25, 2022 17:49
Subject:
Re: Can't localize lexical variable $x at ...
Message ID:
CANgJU+V5TrzVE1ShmyoXzkCRY_t93bZ9iNPhOOJm6vzj_ayJ3w@mail.gmail.com
On Tue, 25 Jan 2022 at 17:48, <hv@crypt.org> wrote:

> demerphq <demerphq@gmail.com> wrote:
> :On Tue, 25 Jan 2022, 23:43 , <hv@crypt.org> wrote:
> We avoid using globals for good reasons, I wouldn't want to use them
> for this unless there really was no alternative.
>

Which good reason? So long as you localize in your sub there isnt much
difference.

yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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