Hi,<br/>How are they different?<br/><br/>1.He walked in, thinking he could get some food from her.<br/>2.He walked in, having thought he could get some food from her.<br/><br/>I feel no. 1 shows both the actions in the main and subordinate clauses occurring at the same time, but no. 2 doesn't necessarily show that.