in reply to Re^5: Variable interpolation of object methods
in thread Variable interpolation of object methods

If i'm not mistaken, the explanation given on the Perl idioms explained page is the same as the explanation i offered in my previous comment which I quite here
are you creating a reference to this variable $gene->display_id and th +en deferencing it straight away with ${ }
I'm double checking as I'm not very confident with perl