in reply to Indirect object vs regular object

No, the reference in your examples is still $rec. But use direct syntax as it has been mentioned below.