http://qs1969.pair.com?node_id=1218891

LanX has asked for the wisdom of the Perl Monks concerning the following question:

The following code is surprising me in two ways:

use strict; use warnings; use feature 'say'; use constant FL => 17,3,16; use constant FL2 => 22,4,13; my @row= "a".."z"; my @a = (" ") x 26; @a[17,3,16] = @row[22,4,13]; say "@a"; @a = (" ") x 26; @a[FL()] = @row[FL2]; say "@a";

It seems like constant folding isn't happening at all!!!

Am I missing something?

(This is perl 5, version 16,)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice