in reply to Why does this code pass a syntax check?
B::Deparse is a great tool for this kind of debugging. Running your snippet with the switch -MO=Deparse gives
As you see, and as Fletch has already told you, method BLOCK is valid and an indirect method invocation.if (defined $hash{$key} and do { $key }->hash =~ /\w+/) { $hash{$key} = 'Numbers: ' . $hash{$key}; }
lodin
|
|---|