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

Re: removing the old-style package separator

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
August 30, 2021 10:32
Subject:
Re: removing the old-style package separator
Message ID:
YSyzmy2CkmXMIUn1@iabyn.com
On Sat, Aug 14, 2021 at 11:08:40PM -0400, Ricardo Signes wrote:
> The following two expressions are equivalent:
> $x::y::z
> 
> $x'y'z

Are we talking about just removing the parsing of "'" in package names in
source code, or more generally the run-time processing of package names,
e.g.

    sub a::b { print "a::b called\n" }
    my $name = "a'b";
    &{$name}();


-- 
Music lesson: a symbiotic relationship whereby a pupil's embellishments
concerning the amount of practice performed since the last lesson are
rewarded with embellishments from the teacher concerning the pupil's
progress over the corresponding period.

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