Skip Menu |
Report information
Id: 130834
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: Is `use v5` still a thing?
Download (untitled) / with headers
text/plain 659b
I notice the first thing[^1] our `use` pragma looks for when it gets a version is `v5` and tries to load `Perl 5` module: That doesn't appear to be a thing any more. Should that conditional be tossed from the grammar? m: use v5 13:41 camelia rakudo-moar 91a4ac: OUTPUT: «===SORRY!===␤Could not find Perl5 at line 1 in:␤ /home/camelia/.perl6␤ /home/camelia/rakudo-m-inst-1/share/perl6/site␤ /home/camelia/rakudo-m-inst-1/share/perl6/vendor␤ /home/camelia/rakudo-m-inst-1/share/perl6␤ CompUnit::Repos…» https://github.com/rakudo/rakudo/blob/91a4ac5a671b7943793a8fdb13a2fda952671f71/src/Perl6/Grammar.nqp#L1595-L1599
I guess it would be nice to explain that this is perl6 and not perl5?

It has been like this for a while, by the way: https://gist.github.com/Whateverable/e98bc397f6e5aee2adc5930a2a06766f

On 2017-02-22 05:45:54, cpan@zoffix.com wrote:
Show quoted text
> I notice the first thing[^1] our `use` pragma looks for when it gets a
> version is `v5` and tries to load `Perl 5` module:
>
> That doesn't appear to be a thing any more. Should that conditional be
> tossed from the grammar?
>
> m: use v5
> 13:41 camelia rakudo-moar 91a4ac: OUTPUT:
> «===SORRY!===␤Could not find Perl5 at line 1 in:␤
> /home/camelia/.perl6␤ /home/camelia/rakudo-m-inst-
> 1/share/perl6/site␤ /home/camelia/rakudo-m-inst-
> 1/share/perl6/vendor␤ /home/camelia/rakudo-m-inst-1/share/perl6␤
> CompUnit::Repos…»
>
>
> https://github.com/rakudo/rakudo/blob/91a4ac5a671b7943793a8fdb13a2fda952671f71/src/Perl6/Grammar.nqp#L1595-
> L1599


From: Brandon Allbery <allbery.b [...] gmail.com>
Subject: Re: [perl #130834] Is `use v5` still a thing?
To: perl6-compiler <perl6-compiler [...] perl.org>
CC: bugs-bitbucket [...] rt.perl.org
Date: Wed, 22 Feb 2017 10:02:27 -0500
Download (untitled) / with headers
text/plain 1.4k
It should do *something*; I suspect the intent was to offload that something, since there was at one point the idea of exec()ing a perl 5. At the very least it should throw --- but that might be handled sufficiently by the default.

On Wed, Feb 22, 2017 at 8:45 AM, Zoffix Znet <perl6-bugs-followup@perl.org> wrote:
Show quoted text
# New Ticket Created by  Zoffix Znet
# Please include the string:  [perl #130834]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=130834 >


I notice the first thing[^1] our `use` pragma looks for when it gets a version is `v5` and tries to load `Perl 5` module:

That doesn't appear to be a thing any more. Should that conditional be tossed from the grammar?

     m: use v5
    13:41       camelia         rakudo-moar 91a4ac: OUTPUT: «===SORRY!===␤Could not find Perl5 at line 1 in:␤    /home/camelia/.perl6␤    /home/camelia/rakudo-m-inst-1/share/perl6/site␤    /home/camelia/rakudo-m-inst-1/share/perl6/vendor␤    /home/camelia/rakudo-m-inst-1/share/perl6␤    CompUnit::Repos…»


https://github.com/rakudo/rakudo/blob/91a4ac5a671b7943793a8fdb13a2fda952671f71/src/Perl6/Grammar.nqp#L1595-L1599



--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org