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

Re: [perl #125833] require ::foo' will try to load /foo.pm

Thread Previous
From:
Ricardo Signes
Date:
January 28, 2016 22:54
Subject:
Re: [perl #125833] require ::foo' will try to load /foo.pm
Message ID:
20160128225425.GA15671@debian
This ticket has fallen off the radar twice, but I am going to get it back on
the radar.  *ping*

As mentioned in the ticket, find the original discussion (from 2012!!) here:
http://www.nntp.perl.org/group/perl.perl5.porters/2012/07/msg189909.html

Here's what we should do:

* forbid any leading colons in require or use statements

There is going to be some inconsistency either way, and this is the
inconsistency to pick.  I think that FC's suggestion of making "require ::x" a
compile error[1] is a good idea.

Patches solicited.

1: http://www.nntp.perl.org/group/perl.perl5.porters/2012/07/msg189936.html

-- 
rjbs

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