FAQ
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #127241]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=127241 >


The Perl 5's variable $^T contains the time when the program was started. Attempting to use it in Perl 6 produces an error, saying one needs to use $*BASETIME instead. However, $*BASETIME is not defined:

<leont> m: say $^T
<camelia> rakudo-moar aefe2c: OUTPUT«===SORRY!=== Error while compiling /tmp/nS5muYIOYN␤Unsupported use of $^T variable; in Perl 6 please use $*BASETIME␤at /tmp/nS5muYIOYN:1␤------> say $^T⏏<EOL>␤»
<leont> m: say $*BASETIME
<camelia> rakudo-moar aefe2c: OUTPUT«Dynamic variable $*BASETIME not found␤ in block <unit> at /tmp/Ld6DfGh5vL line 1␤␤Actually thrown at:␤ in block <unit> at /tmp/Ld6DfGh5vL line 1␤␤»

Search Discussions

  • Elizabeth Mattijsen at Jan 11, 2016 at 8:11 pm

    On 11 Jan 2016, at 18:57, Zoffix Znet (via RT) wrote:

    # New Ticket Created by Zoffix Znet
    # Please include the string: [perl #127241]
    # in the subject line of all future correspondence about this issue.
    # <URL: https://rt.perl.org/Ticket/Display.html?id=127241 >


    The Perl 5's variable $^T contains the time when the program was started. Attempting to use it in Perl 6 produces an error, saying one needs to use $*BASETIME instead. However, $*BASETIME is not defined:

    <leont> m: say $^T
    <camelia> rakudo-moar aefe2c: OUTPUT«===SORRY!=== Error while compiling /tmp/nS5muYIOYN␤Unsupported use of $^T variable; in Perl 6 please use $*BASETIME␤at /tmp/nS5muYIOYN:1␤------> say $^T⏏<EOL>␤»
    <leont> m: say $*BASETIME
    <camelia> rakudo-moar aefe2c: OUTPUT«Dynamic variable $*BASETIME not found␤ in block <unit> at /tmp/Ld6DfGh5vL line 1␤␤Actually thrown at:␤ in block <unit> at /tmp/Ld6DfGh5vL line 1␤␤»
    Fixed with 15b4a8f , can be closed.


    Liz

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl6-compiler @
categoriesperl
postedJan 11, '16 at 5:57p
activeJan 11, '16 at 8:11p
posts2
users2
websiteperl6.org

People

Translate

site design / logo © 2018 Grokbase