in reply to Re^3: Variable interpolation of object methods
in thread Variable interpolation of object methods
When the interpolation has read $gene, it stops parsing and so never sees the dereference (->).
Whereas, inside ${ ... }, it expect any code, so it is parsed using the full Perl parser, rather than a limited parser looking only for a variable name.
Note:That's my fits-the-evidence assumption, not definitive deep source-diving knowledge.
|
|---|