wrote a function to find the maximum in a list. Notice how in line 15 we pass address of the start of the list $list as a parameter to the function. This is what passing by reference actually means. Now the max_list function has full liberty to alter the contents of the list too.
