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

Re: module loading built-in

Thread Previous
From:
Dan Book
Date:
January 28, 2022 15:05
Subject:
Re: module loading built-in
Message ID:
CABMkAVVjuiKOLS4a5n7qrRcECzGv1SksZWcHCAZeVZry1MPfLg@mail.gmail.com
On Fri, Jan 28, 2022 at 8:58 AM Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
wrote:

> On Sun, 12 Sep 2021 12:35:19 -0400
> Dan Book <grinnz@gmail.com> wrote:
>
> > only because
> > '' and '0' are not valid package names.
>
> Au contraire:
>
>   https://metacpan.org/dist/Scalar-Defer/source/lib/Scalar/Defer.pm#L16
>
>   https://metacpan.org/dist/Scalar-Defer/source/lib/Scalar/Defer.pm#L137
>
>   https://metacpan.org/dist/Scalar-Defer/source/lib/Scalar/Defer.pm#L25


I don't remember the context but I was probably being imprecise - they
cannot be declared in a package statement or written to fully-qualify a
symbol, but of course you can pass whatever you want to bless.

-Dan

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About