in reply to Variable interpolation of object methods

Use list:
print "'",$gene->display_id,"'\n";