in reply to Re^8: Array dereference in foreach()
in thread Array dereference in foreach()

keys doesn't propagate the outer context to its argument.
#!/usr/bin/perl use strict; use warnings; my $x; 1 for %$x; print $x, "\n"; # HASH(0x26a18cd)

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^10: Array dereference in foreach()
by pme (Monsignor) on Nov 16, 2017 at 13:03 UTC
    I suspected that based on haukex comment below.

    Thank you guys!