# New Ticket Created by dakkar # Please include the string: [perl #125975] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=125975 >
Consider this snippet: constant NOW = DateTime.now; That is a BEGIN-time declaration + initialisation. C<NOW> will contain the time of compilation. On the other hand: my \NOW = DateTime.now; does run-time initialisation, so you get a different time at each run. There does not seem to be a nice way of having a C<constant> with an INIT-time initialiser: constant NOW = INIT DateTime.now; sets C<NOW> to C<Mu>, since a BEGIN time that INIT block has not run. Is there already a working way to do that? Should there be? Thanks.