develooper Front page | perl.perl5.porters | Postings from August 2021

Re: PSC #034 2021-08-20 - "Namespaces Special"

Thread Previous | Thread Next
From:
David Nicol
Date:
August 31, 2021 18:27
Subject:
Re: PSC #034 2021-08-20 - "Namespaces Special"
Message ID:
CAFwScO_6nmMFveZkrnEWfbvDSW7q5ssfqesjOgXTNqavMNW8KA@mail.gmail.com
Lexical method names? C<my sub foo {...}> works or no?

how about "my use ..." to somehow make caller()[0] refer to the top pad
instead of the package?



>   * Lexical - much like `use strict`, `use feature`, etc.. rather than
>     any of the "inject subs into caller's package" ideas like Exporter.
>
-- 
"Lay off that whiskey, and let that cocaine be!" -- Johnny Cash

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