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
In reply to Re: Why does this code pass a syntax check?
by lodin
in thread Why does this code pass a syntax check?
by dwm042
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |